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
{{ message }}
Repository navigation
Allow returning specific exit code for helm plugins #4170
We are looking into returning different exit codes in the helm-diff to simplify some CI scenarios (See databus23/helm-diff#54)
The issue is that Helm considers any non zero exit codes from the plugin to be an error and will always exit with 1. We need to be able to return a specific exit code to the caller.
E.g. we want the helm diff upgrade command to return with exit code 2 if no error occurred but some changes were found.
Any thoughts on how this could/should be implemented?
Anyone is working on this? If not, I'm going to pick this up!
My motivation to implement this inside helm went up due to that I can't just run the underlying helm-diff binary alone. That's because helm-diff depends on connectivity to tiller, that is helm's functionality to start port-forwarding to tiller and populate the address:port to it in the TILLER_HOST envvar.
thank you @mumoshu
I took a look at the MR, it's really simple and does exactly what I had in mind. Hopefully we can get this merged soon, it would be really helpful.
Activity
mumoshu commentedon Jul 20, 2018
Anyone is working on this? If not, I'm going to pick this up!
My motivation to implement this inside helm went up due to that I can't just run the underlying
helm-diffbinary alone. That's becausehelm-diffdepends on connectivity to tiller, that ishelm's functionality to start port-forwarding to tiller and populate the address:port to it in the TILLER_HOST envvar.feat(helm): Detailed exit code for helm plugins
mumoshu commentedon Jul 20, 2018
Submitted #4367 for this.
royjs commentedon Jul 20, 2018
thank you @mumoshu
I took a look at the MR, it's really simple and does exactly what I had in mind. Hopefully we can get this merged soon, it would be really helpful.
feat(helm): Detailed exit code for helm plugins (#4367)
feat(helm): Detailed exit code for helm plugins (helm#4367)
feat(helm): Detailed exit code for helm plugins (helm#4367)
feat(helm): Detailed exit code for helm plugins (helm#4367)
feat(helm): Detailed exit code for helm plugins (helm#4367)
feat(helm): Detailed exit code for helm plugins (helm#4367)