From 403b4a41e8f2f2aa40ebfbcfba6cab65d1bb11a5 Mon Sep 17 00:00:00 2001 From: tom1299 Date: Mon, 7 Jul 2025 08:15:52 +0200 Subject: [PATCH] Fix help for set selector Kubernetes-commit: 925bce297e4f39a4ab6295416621327773bca5e5 --- pkg/cmd/set/set_selector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/set/set_selector.go b/pkg/cmd/set/set_selector.go index 106873359..eb8c2c8b7 100644 --- a/pkg/cmd/set/set_selector.go +++ b/pkg/cmd/set/set_selector.go @@ -74,7 +74,7 @@ var ( selectorExample = templates.Examples(` # Set the labels and selector before creating a deployment/service pair kubectl create service clusterip my-svc --clusterip="None" -o yaml --dry-run=client | kubectl set selector --local -f - 'environment=qa' -o yaml | kubectl create -f - - kubectl create deployment my-dep -o yaml --dry-run=client | kubectl label --local -f - environment=qa -o yaml | kubectl create -f -`) + kubectl create deployment my-dep --image=nginx -o yaml --dry-run=client | kubectl label --local -f - environment=qa -o yaml | kubectl create -f -`) ) // NewSelectorOptions returns an initialized SelectorOptions instance