Merge pull request #11350 from thockin/munge-check-kubectl-dash-f
Add munger to verify kubectl -f targets
This commit is contained in:
@@ -133,7 +133,7 @@ JSON and YAML formats are accepted.
|
||||
|
||||
.nf
|
||||
// Create a pod using the data in pod.json.
|
||||
$ kubectl create \-f pod.json
|
||||
$ kubectl create \-f ./pod.json
|
||||
|
||||
// Create a pod based on the JSON passed into stdin.
|
||||
$ cat pod.json | kubectl create \-f \-
|
||||
|
@@ -166,7 +166,7 @@ will be lost along with the rest of the resource.
|
||||
|
||||
.nf
|
||||
// Delete a pod using the type and name specified in pod.json.
|
||||
$ kubectl delete \-f pod.json
|
||||
$ kubectl delete \-f ./pod.json
|
||||
|
||||
// Delete a pod based on the type and name in the JSON passed into stdin.
|
||||
$ cat pod.json | kubectl delete \-f \-
|
||||
|
@@ -149,13 +149,13 @@ JSON and YAML formats are accepted.
|
||||
|
||||
.nf
|
||||
// Replace a pod using the data in pod.json.
|
||||
$ kubectl replace \-f pod.json
|
||||
$ kubectl replace \-f ./pod.json
|
||||
|
||||
// Replace a pod based on the JSON passed into stdin.
|
||||
$ cat pod.json | kubectl replace \-f \-
|
||||
|
||||
// Force replace, delete and then re\-create the resource
|
||||
kubectl replace \-\-force \-f pod.json
|
||||
kubectl replace \-\-force \-f ./pod.json
|
||||
|
||||
.fi
|
||||
.RE
|
||||
|
Reference in New Issue
Block a user