From e472a7724bc6f105e07c9a0d6362cd0e8390d2fe Mon Sep 17 00:00:00 2001 From: chymy Date: Thu, 28 Jan 2021 10:35:21 +0800 Subject: [PATCH] add i18n.T in waitExample Signed-off-by: chymy --- staging/src/k8s.io/kubectl/pkg/cmd/wait/wait.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/staging/src/k8s.io/kubectl/pkg/cmd/wait/wait.go b/staging/src/k8s.io/kubectl/pkg/cmd/wait/wait.go index 6cc5b550152..a9f366229ac 100644 --- a/staging/src/k8s.io/kubectl/pkg/cmd/wait/wait.go +++ b/staging/src/k8s.io/kubectl/pkg/cmd/wait/wait.go @@ -58,7 +58,7 @@ var ( A successful message will be printed to stdout indicating when the specified condition has been met. One can use -o option to change to output destination.`)) - waitExample = templates.Examples(` + waitExample = templates.Examples(i18n.T(` # Wait for the pod "busybox1" to contain the status condition of type "Ready". kubectl wait --for=condition=Ready pod/busybox1 @@ -67,7 +67,7 @@ var ( # Wait for the pod "busybox1" to be deleted, with a timeout of 60s, after having issued the "delete" command. kubectl delete pod/busybox1 - kubectl wait --for=delete pod/busybox1 --timeout=60s`) + kubectl wait --for=delete pod/busybox1 --timeout=60s`)) ) // errNoMatchingResources is returned when there is no resources matching a query.