kubectl_apply.md-change it for label key

When I test this command, if the configmap has a label, it just delete the configmaps which has the same label key and that are not in the file.
kubectl apply --prune -f manifest.yaml --all --prune-whitelist=core/v1/ConfigMap
So I advise change the description like this:
"Apply the configuration in manifest.yaml and delete all the other configmaps with the same label key that are not in the file."
reviewable/pr2557/r4
sallydeng 2017-02-15 16:15:20 +08:00 committed by Andrew Chen
parent 76e1bfc55d
commit 9b3f420bd9
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ kubectl apply -f FILENAME
# Apply the configuration in manifest.yaml that matches label app=nginx and delete all the other resources that are not in the file and match label app=nginx.
kubectl apply --prune -f manifest.yaml -l app=nginx
# Apply the configuration in manifest.yaml and delete all the other configmaps that are not in the file.
# Apply the configuration in manifest.yaml and delete all the other configmaps with the same label key that are not in the file.
kubectl apply --prune -f manifest.yaml --all --prune-whitelist=core/v1/ConfigMap
```