kubernetes: Unable to use commas in --from-literal when creating a configMap
Creating a config map with a --from-literal argument fails when the literal value contains commas.
Eg.
kubectl create configmap test \
--from-literal=seeds=A,B
The error I get is:
error: invalid literal source B, expected key=value
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 42 (37 by maintainers)
Commits related to this issue
- fix issue #27454: replace flag type StringSlice with StringArray in configMap — committed to wu8685/kubernetes by wu8685 8 years ago
- Merge pull request #33263 from wu8685/flag_string_array Automatic merge from submit-queue Update godep for github.com/spf13/pflag and replace StringSlice with String Array in configMap Update godep... — committed to kubernetes/kubernetes by deleted user 8 years ago
I prefer
StringArrayconsidering backward compatibility. @all If there is no other questions, I am going to open a issue in pflag to add this type.