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:
Peeyush Agarwal
2015-08-12 16:50:09 +00:00
parent 5c08d276a0
commit 05e069d038
63 changed files with 270 additions and 270 deletions

View File

@@ -39,16 +39,16 @@ complete resource spec must be provided. This can be obtained by
$ kubectl get TYPE NAME -o yaml
Please refer to the models in https://htmlpreview.github.io/?https://github.com/GoogleCloudPlatform/kubernetes/HEAD/docs/api-reference/definitions.html to find if a field is mutable.`
replace_example = `// Replace a pod using the data in pod.json.
replace_example = `# Replace a pod using the data in pod.json.
$ kubectl replace -f ./pod.json
// Replace a pod based on the JSON passed into stdin.
# Replace a pod based on the JSON passed into stdin.
$ cat pod.json | kubectl replace -f -
// Update a single-container pod's image version (tag) to v4
# Update a single-container pod's image version (tag) to v4
kubectl get pod mypod -o yaml | sed 's/\(image: myimage\):.*$/\1:v4/' | kubectl replace -f -
// Force replace, delete and then re-create the resource
# Force replace, delete and then re-create the resource
kubectl replace --force -f ./pod.json`
)