Skip to content

Allow returning specific exit code for helm plugins #4170

Closed

Description

@royjs

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?

Activity

  1. mumoshu commented on Jul 20, 2018

    @mumoshu
    Contributor

    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.

  2. added a commit that references this issue on Jul 20, 2018
    68a7034
  3. mumoshu commented on Jul 20, 2018

    @mumoshu
    Contributor

    Submitted #4367 for this.

  4. royjs commented on Jul 20, 2018

    @royjs
    Author

    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.

  5. added a commit that references this issue on Jul 23, 2018
    3e5b406
  6. added 4 commits that reference this issue on Dec 6, 2018
    ae8b7b9
    44ff9d5
    133c3c0
    e2d892e
  7. added a commit that references this issue on Feb 17, 2019
    ba1e076
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions