[en]Modify the format content/en/docs/reference/using-api/deprecation-guide.md
4
This commit is contained in:
parent
a8b640bd6f
commit
98b049bf29
|
|
@ -324,14 +324,14 @@ to locate use of deprecated APIs.
|
||||||
* Update custom integrations and controllers to call the non-deprecated APIs
|
* Update custom integrations and controllers to call the non-deprecated APIs
|
||||||
* Change YAML files to reference the non-deprecated APIs
|
* Change YAML files to reference the non-deprecated APIs
|
||||||
|
|
||||||
You can use the `kubectl-convert` command (`kubectl convert` prior to v1.20)
|
You can use the `kubectl-convert` command (`kubectl convert` prior to v1.20)
|
||||||
to automatically convert an existing object:
|
to automatically convert an existing object:
|
||||||
|
|
||||||
`kubectl-convert -f <file> --output-version <group>/<version>`.
|
`kubectl-convert -f <file> --output-version <group>/<version>`.
|
||||||
|
|
||||||
For example, to convert an older Deployment to `apps/v1`, you can run:
|
For example, to convert an older Deployment to `apps/v1`, you can run:
|
||||||
|
|
||||||
`kubectl-convert -f ./my-deployment.yaml --output-version apps/v1`
|
`kubectl-convert -f ./my-deployment.yaml --output-version apps/v1`
|
||||||
|
|
||||||
Note that this may use non-ideal default values. To learn more about a specific
|
Note that this may use non-ideal default values. To learn more about a specific
|
||||||
resource, check the Kubernetes [API reference](/docs/reference/kubernetes-api/).
|
resource, check the Kubernetes [API reference](/docs/reference/kubernetes-api/).
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue