mirror of
https://github.com/containers/podman.git
synced 2025-06-19 16:33:24 +08:00
cli: podman kube play --annotation use StringArray()
This option accepts arbitrary input so we should allow commas in it. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -98,7 +98,7 @@ func playFlags(cmd *cobra.Command) {
|
||||
flags.SetNormalizeFunc(utils.AliasFlags)
|
||||
|
||||
annotationFlagName := "annotation"
|
||||
flags.StringSliceVar(
|
||||
flags.StringArrayVar(
|
||||
&playOptions.annotations,
|
||||
annotationFlagName, []string{},
|
||||
"Add annotations to pods (key=value)",
|
||||
|
Reference in New Issue
Block a user