From d7c1072e4fd398e1ebee85a5e41ec4d8598b7d78 Mon Sep 17 00:00:00 2001 From: Yosri Barhoumi Date: Tue, 3 Feb 2026 01:49:10 +0100 Subject: [PATCH] Fix example in kubectl create configmap Signed-off-by: Yosri Barhoumi --- .../src/k8s.io/kubectl/pkg/cmd/create/create_configmap.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/staging/src/k8s.io/kubectl/pkg/cmd/create/create_configmap.go b/staging/src/k8s.io/kubectl/pkg/cmd/create/create_configmap.go index f43f91b0134..467f5e3364b 100644 --- a/staging/src/k8s.io/kubectl/pkg/cmd/create/create_configmap.go +++ b/staging/src/k8s.io/kubectl/pkg/cmd/create/create_configmap.go @@ -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