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

Most upvoted comments

I prefer StringArray considering backward compatibility. @all If there is no other questions, I am going to open a issue in pflag to add this type.