Clean up extensions/v1beta1 in docs (#18841)
This commit is contained in:
parent
cbb20be969
commit
a3560e9bbd
|
|
@ -136,7 +136,7 @@ metadata:
|
||||||
name: frontend-9si5l
|
name: frontend-9si5l
|
||||||
namespace: default
|
namespace: default
|
||||||
ownerReferences:
|
ownerReferences:
|
||||||
- apiVersion: extensions/v1beta1
|
- apiVersion: apps/v1
|
||||||
blockOwnerDeletion: true
|
blockOwnerDeletion: true
|
||||||
controller: true
|
controller: true
|
||||||
kind: ReplicaSet
|
kind: ReplicaSet
|
||||||
|
|
@ -261,7 +261,7 @@ the -d option.
|
||||||
For example:
|
For example:
|
||||||
```shell
|
```shell
|
||||||
kubectl proxy --port=8080
|
kubectl proxy --port=8080
|
||||||
curl -X DELETE 'localhost:8080/apis/extensions/v1beta1/namespaces/default/replicasets/frontend' \
|
curl -X DELETE 'localhost:8080/apis/apps/v1/namespaces/default/replicasets/frontend' \
|
||||||
> -d '{"kind":"DeleteOptions","apiVersion":"v1","propagationPolicy":"Foreground"}' \
|
> -d '{"kind":"DeleteOptions","apiVersion":"v1","propagationPolicy":"Foreground"}' \
|
||||||
> -H "Content-Type: application/json"
|
> -H "Content-Type: application/json"
|
||||||
```
|
```
|
||||||
|
|
@ -273,7 +273,7 @@ When using the REST API or the `client-go` library, you must set `propagationPol
|
||||||
For example:
|
For example:
|
||||||
```shell
|
```shell
|
||||||
kubectl proxy --port=8080
|
kubectl proxy --port=8080
|
||||||
curl -X DELETE 'localhost:8080/apis/extensions/v1beta1/namespaces/default/replicasets/frontend' \
|
curl -X DELETE 'localhost:8080/apis/apps/v1/namespaces/default/replicasets/frontend' \
|
||||||
> -d '{"kind":"DeleteOptions","apiVersion":"v1","propagationPolicy":"Orphan"}' \
|
> -d '{"kind":"DeleteOptions","apiVersion":"v1","propagationPolicy":"Orphan"}' \
|
||||||
> -H "Content-Type: application/json"
|
> -H "Content-Type: application/json"
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue