Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add --fail-on-diff-error CLI flag to return non-zero exit code on diff error #3

Closed

Conversation

rnakamine
Copy link

@rnakamine rnakamine commented Dec 28, 2024

ref: #2

A new --fail-on-diff-error flag has been added. When enabled, if a diff error occurs (e.g., if kustomize build fails in any directory), the command will exit with a non-zero status code. This makes detecting errors in automation and CI/CD pipelines easier.

Changes

  • Added the --fail-on-diff-error flag to runCmd.
  • Exits with a non-zero status if a diff error occurs and the flag is enabled.
  • Defaults to the current behavior if the new flag is not used.

@rnakamine rnakamine changed the title feat: Add --fail-on-kustomize-error CLI flag to return non-zero exit code on kustomize build failure feat: Add --fail-on-diff-error CLI flag to return non-zero exit code on diff error Dec 30, 2024
@rnakamine rnakamine closed this Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant