mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
Use bash comments in kubectl examples
Comments in kubectl examples should use bash comments, not Go comments. So, replaces // by # for example strings.
This commit is contained in:
@@ -33,14 +33,14 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
exec_example = `// get output from running 'date' from pod 123456-7890, using the first container by default
|
||||
exec_example = `# get output from running 'date' from pod 123456-7890, using the first container by default
|
||||
$ kubectl exec 123456-7890 date
|
||||
|
||||
// get output from running 'date' in ruby-container from pod 123456-7890
|
||||
# get output from running 'date' in ruby-container from pod 123456-7890
|
||||
$ kubectl exec 123456-7890 -c ruby-container date
|
||||
|
||||
// switch to raw terminal mode, sends stdin to 'bash' in ruby-container from pod 123456-780
|
||||
// and sends stdout/stderr from 'bash' back to the client
|
||||
# switch to raw terminal mode, sends stdin to 'bash' in ruby-container from pod 123456-780
|
||||
# and sends stdout/stderr from 'bash' back to the client
|
||||
$ kubectl exec 123456-7890 -c ruby-container -i -t -- bash -il`
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user