Merge pull request #136703 from yosri-brh/fix-configmap-example

Fix kubectl create configmap example
This commit is contained in:
Kubernetes Prow Robot
2026-03-04 03:32:17 +05:30
committed by GitHub

View File

@@ -64,11 +64,8 @@ var (
# Create a new config map named my-config with key1=config1 and key2=config2
kubectl create configmap my-config --from-literal=key1=config1 --from-literal=key2=config2
# Create a new config map named my-config from the key=value pairs in the file
kubectl create configmap my-config --from-file=path/to/bar
# Create a new config map named my-config from an env file
kubectl create configmap my-config --from-env-file=path/to/foo.env --from-env-file=path/to/bar.env`))
# Create a new config map named my-config with key=value pairs from an env file
kubectl create configmap my-config --from-env-file=path/to/bar.env`))
)
// ConfigMapOptions holds properties for create configmap sub-command