-
Notifications
You must be signed in to change notification settings - Fork 2.4k
kustomize version command: invalid --output value fails silently #6032
Copy link
Copy link
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.Important over the long term, but may not be staffed and/or may need multiple releases to complete.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.Important over the long term, but may not be staffed and/or may need multiple releases to complete.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
What happened?
While this is a very minor usability issue,
it could help other users avoid the same confusion I experienced.
When using the
kustomize versioncommand with an invalid--outputflag,the command succeeds (exit code 0) but produces no output.
I'm used to using
kubectlcommands with--output=yaml, and occasionally I mistype it as--output=yml.With
kubectl, I get an immediate error, butkustomizesilently failed without any feedback.What did you expect to happen?
The command should return an error message indicating that the output format is invalid.
Expected error message:
How can we reproduce it (as minimally and precisely as possible)?
Run the following command with an invalid output format:
$ kustomize version --output=yml # silently failsExpected output
Actual output
Kustomize version
v5.8.0
Operating system
Linux