Fixed deprecated delete cascade 'false' value

`kubectl delete --cascade=false` is now deprecated in favor of `kubectl delete --cascade=orphan`
This commit is contained in:
Ajay
2021-01-07 07:45:11 +05:30
committed by GitHub
parent 42f7ec3ab4
commit c15a08afd1
@@ -283,7 +283,7 @@ curl -X DELETE 'localhost:8080/apis/apps/v1/namespaces/default/replicasets/fron
### Deleting just a ReplicaSet
You can delete a ReplicaSet without affecting any of its Pods using [`kubectl delete`](/docs/reference/generated/kubectl/kubectl-commands#delete) with the `--cascade=false` option.
You can delete a ReplicaSet without affecting any of its Pods using [`kubectl delete`](/docs/reference/generated/kubectl/kubectl-commands#delete) with the `--cascade=orphan` option.
When using the REST API or the `client-go` library, you must set `propagationPolicy` to `Orphan`.
For example:
```shell