Fix help for set selector

Kubernetes-commit: 925bce297e4f39a4ab6295416621327773bca5e5
This commit is contained in:
tom1299 2025-07-07 08:15:52 +02:00 committed by Kubernetes Publisher
parent 7b4e1d1699
commit 403b4a41e8
1 changed files with 1 additions and 1 deletions

View File

@ -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