Skip to content

Commit 7cdbb1f

Browse files
committed
Address comments
1 parent 85f0761 commit 7cdbb1f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

content/en/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,8 @@ spec:
355355

356356
### Version removal
357357

358-
An API version can be removed if there is a newer API version served and stored in the API server for at least 3 Kubernetes releases.
359-
The older API version cannot be dropped from the CRD manifest until data has been migrated to the newer API version for all clusters that served the older version of the CRD and cleared the older version from status.storedVersions.
358+
An older API version cannot be dropped from a CustomResourceDefinition manifest until existing persisted data has been migrated to the newer API version for all clusters that served the older version of the custom resource, and the old version is removed from the `status.storedVersions` of the CustomResourceDefinition.
360359

361-
{{< tabs name="CustomResourceDefinition_versioning_removal" >}}
362-
{{% tab name="apiextensions.k8s.io/v1" %}}
363360
```yaml
364361
apiVersion: apiextensions.k8s.io/v1
365362
kind: CustomResourceDefinition
@@ -373,12 +370,13 @@ spec:
373370
scope: Namespaced
374371
versions:
375372
- name: v1beta1
376-
served: false
377373
# This indicates the v1beta1 version of the custom resource is no longer served.
378374
# API requests to this version receive a not found error in the server response.
375+
served: false
379376
schema: ...
380377
- name: v1
381378
served: true
379+
# The new served version should be set as the storage version
382380
storage: true
383381
schema: ...
384382
```

0 commit comments

Comments
 (0)