You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies in advanced if I've misunderstood the docs or missed something.
The docs state that the kubernetes.core.helm module should be returning a status object that contains various information on the Helm deployment, such as status.
I was reviewing this as we've been seeing the odd failure with our charts and wanted to have Ansible throw an error in that event. We noticed that the module wasn't returning the return code from the helm command and then turned to this object but all I can see in the result is the logs (msg, stdout, stderr).
Use kubernetes.core.helm to try and deploy a Chart that's expected to fail. Notice that the task passes and there's no definitive way to detect failures from Helm.
EXPECTED RESULTS
Users have a way to detect failures from Helm.
ACTUAL RESULTS
Helm task passes quietly even though the command itself has failed.
The text was updated successfully, but these errors were encountered:
If the helm command fails, the task should fail. Can you provide an example playbook and its output for a case in which you are seeing the helm command fail but the task does not?
SUMMARY
Apologies in advanced if I've misunderstood the docs or missed something.
The docs state that the
kubernetes.core.helm
module should be returning astatus
object that contains various information on the Helm deployment, such asstatus
.I was reviewing this as we've been seeing the odd failure with our charts and wanted to have Ansible throw an error in that event. We noticed that the module wasn't returning the return code from the
helm
command and then turned to this object but all I can see in the result is the logs (msg
,stdout
,stderr
).How do we detect failures from the Helm command?
ISSUE TYPE
COMPONENT NAME
kubernetes.core.helm
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Mac OS / Linux
STEPS TO REPRODUCE
Use
kubernetes.core.helm
to try and deploy a Chart that's expected to fail. Notice that the task passes and there's no definitive way to detect failures from Helm.EXPECTED RESULTS
Users have a way to detect failures from Helm.
ACTUAL RESULTS
Helm task passes quietly even though the command itself has failed.
The text was updated successfully, but these errors were encountered: