Repository navigation
feat: Dedicated exit code (2) on there's diff - #78
Merged
mumoshu merged 1 commit intoJul 25, 2018
Merged
Conversation
mumoshu
force-pushed
the
dedicated-exitcode-when-theres-diff
branch
from
July 25, 2018 06:37
78fbf73 to
516360d
Compare
This feature is enabled only when the `--detailed-exitcode` flag (databus23#65) is provided. Supports `upgrade`, `revision` and `rollback` sub-commands. Resolves databus23#54, but only after helm/helm#4367 is released with helm v2.11.0, probably.
mumoshu
force-pushed
the
dedicated-exitcode-when-theres-diff
branch
from
July 25, 2018 06:38
516360d to
49155f3
Compare
Collaborator
Author
|
Merging this to start gathering more feedbacks on #54 |
Closed
mumoshu
added a commit
to mumoshu/helmfile
that referenced
this pull request
Jul 25, 2018
Adds the `--detailed-exitcode` to the `helmfile diff` command to return `1` on failure, and `2` when no error but diff is seen. This feature requires the latest `helm-diff` containing databus23/helm-diff#78, and `helm` containing helm/helm#4367. This is verified to work by manually running commands like the followings: ```bash ./helmfile --helm-binary helm211dev -f ./examples/helmfile.d diff --detailed-exitcode; echo $? ./helmfile --helm-binary helm211dev -f ./examples/helmfile.d diff; echo $? ``` Note that, in above example commands, `helm211dev` is a custom `helm` binary that is built from helm's master branch containing [the necessary enhancement to allow propagate non-zero plugin exit code](helm/helm#4367).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This feature is enabled only when the
--detailed-exitcodeflag (#65) is provided.Supports
upgrade,revisionandrollbacksub-commands.Resolves #54, but only after helm/helm#4367 is released with helm v2.11.0, probably.