-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.Indicates an issue or PR lacks a `triage/foo` label and requires one.
Description
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 version command with an invalid --output flag,
the command succeeds (exit code 0) but produces no output.
I'm used to using kubectl commands with --output=yaml, and occasionally I mistype it as --output=yml.
With kubectl, I get an immediate error, but kustomize silently 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:
# the same message as `kubectl version` with invalid `--output` flag
error: --output must be 'yaml' or 'json'
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
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.Indicates an issue or PR lacks a `triage/foo` label and requires one.