Merge pull request #126173 from bergerhoffer/cli-help

A few minor help text tweaks
This commit is contained in:
Kubernetes Prow Robot 2024-07-17 16:29:34 -07:00 committed by GitHub
commit 45cb3a1bd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 10 additions and 11 deletions

View File

@ -83,9 +83,8 @@ var (
# Check to see if I can list deployments in my current namespace
kubectl auth can-i list deployments.apps
# Check to see if service account "foo" of namespace "dev" can list pods
# in the namespace "prod".
# You must be allowed to use impersonation for the global option "--as".
# Check to see if service account "foo" of namespace "dev" can list pods in the namespace "prod"
# You must be allowed to use impersonation for the global option "--as"
kubectl auth can-i list pods --as=system:serviceaccount:dev:foo -n prod
# Check to see if I can do everything in my current namespace ("*" means all)

View File

@ -128,10 +128,10 @@ var (
`)
whoAmIExample = templates.Examples(`
# Get your subject attributes.
# Get your subject attributes
kubectl auth whoami
# Get your subject attributes in JSON format.
# Get your subject attributes in JSON format
kubectl auth whoami -o json
`)
)

View File

@ -63,7 +63,7 @@ var (
Resource rollout will be restarted.`))
restartExample = templates.Examples(`
# Restart all deployments in test-namespace namespace
# Restart all deployments in the test-namespace namespace
kubectl rollout restart deployment -n test-namespace
# Restart a deployment

View File

@ -70,7 +70,7 @@ var (
# Wait for pod "busybox1" to be Ready
kubectl wait --for='jsonpath={.status.conditions[?(@.type=="Ready")].status}=True' pod/busybox1
# Wait for the service "loadbalancer" to have ingress.
# Wait for the service "loadbalancer" to have ingress
kubectl wait --for=jsonpath='{.status.loadBalancer.ingress}' service/loadbalancer
# Wait for the pod "busybox1" to be deleted, with a timeout of 60s, after having issued the "delete" command