You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning.md
+25-13Lines changed: 25 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -356,7 +356,7 @@ spec:
356
356
357
357
### Version removal
358
358
359
-
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.
359
+
An older API version cannot be dropped from a CustomResourceDefinition manifest until existing stored 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.
360
360
361
361
```yaml
362
362
apiVersion: apiextensions.k8s.io/v1
@@ -1021,42 +1021,54 @@ Example of a response from a webhook indicating a conversion request failed, wit
1021
1021
1022
1022
## Writing, reading, and updating versioned CustomResourceDefinition objects
1023
1023
1024
-
When an object is written, it is persisted at the version designated as the
1024
+
When an object is written, it is stored at the version designated as the
1025
1025
storage version at the time of the write. If the storage version changes,
1026
1026
existing objects are never converted automatically. However, newly-created
1027
1027
or updated objects are written at the new storage version. It is possible for an
1028
1028
object to have been written at a version that is no longer served.
1029
1029
1030
-
When you read an object, you specify the version as part of the path. If you
1031
-
specify a version that is different from the object's persisted version,
1032
-
Kubernetes returns the object to you at the version you requested, but the
1033
-
persisted object is neither changed on disk, nor converted in any way
1034
-
(other than changing the `apiVersion` string) while serving the request.
1030
+
When you read an object, you specify the version as part of the path.
1035
1031
You can request an object at any version that is currently served.
1032
+
If you specify a version that is different from the object's stored version,
1033
+
Kubernetes returns the object to you at the version you requested, but the
1034
+
stored object is not changed on disk.
1035
+
1036
+
What happens to the object that is being returned while serving the read
1037
+
request depends on what is specified in the CRD's `spec.conversion`:
1038
+
- if the default `strategy` value `None` is specified, the only modifications
1039
+
to the object are changing the `apiVersion` string and perhaps [pruning
0 commit comments