Fix example in kubectl create configmap

Signed-off-by: Yosri Barhoumi <med.yosri.brh@gmail.com>
This commit is contained in:
Yosri Barhoumi
2026-02-03 01:49:10 +01:00
parent b12d6a7f6b
commit d7c1072e4f

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