-
Notifications
You must be signed in to change notification settings - Fork 252
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
the "annotate" flag does not parse the annotation value correctly if it contains comma #2402
Comments
Some more investigation from a slack channel:
TLDR - it is possible to use the flag as is, but really hard. Parsing the But would also be a breaking change for anyone who's relying on the StringSlice behavior |
Due to tektoncd/cli#2402, annotation values that contain commas or double-quotes currently break 'tkn bundle push'. Escape such annotation values in a way that's compatible with the pflag.StringSlice [1] parser that 'tkn bundle push' uses to parse CLI arguments. https://pkg.go.dev/github.com/spf13/pflag#FlagSet.StringSlice Signed-off-by: Adam Cmiel <[email protected]>
Due to tektoncd/cli#2402, annotation values that contain commas or double-quotes currently break 'tkn bundle push'. Escape such annotation values in a way that's compatible with the pflag.StringSlice [1] parser that 'tkn bundle push' uses to parse CLI arguments. [1]: https://pkg.go.dev/github.com/spf13/pflag#FlagSet.StringSlice Signed-off-by: Adam Cmiel <[email protected]>
Due to tektoncd/cli#2402, annotation values that contain commas or double-quotes currently break 'tkn bundle push'. Escape such annotation values in a way that's compatible with the pflag.StringSlice [1] parser that 'tkn bundle push' uses to parse CLI arguments. [1]: https://pkg.go.dev/github.com/spf13/pflag#FlagSet.StringSlice Signed-off-by: Adam Cmiel <[email protected]>
Versions and Operating System
Kubernetes version:
not needed to reproduce this bug
Tekton Pipeline version:
Operating System:
Expected Behavior
when using
--annotate
parameter withtkn bundle push
command, the annotation's value is parsed correctly if it contains comma:,
Actual Behavior
it fails with an error:
Error: invalid input format for param parameter: <the rest of the annotation value string after comma>
Steps to Reproduce the Problem
Run
Additional Info
the
--annotate
parameter was introduced in this commitThe text was updated successfully, but these errors were encountered: