Skip to content

Commit 8b1209d

Browse files
Update custom-resource-definition-versioning.md
Since there can be only one version that needs to be stored and storage option is required else the parsing fails. Adding the storage option and setting it false. Schema Vaildation fails with error: error validating data: ValidationError(CustomResourceDefinition.spec.versions[1]): missing required field "storage" in io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion; if you choose to ignore these errors, turn validation off with --validate=false
1 parent 7515fc6 commit 8b1209d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,13 @@ spec:
297297
versions:
298298
- name: v1alpha1
299299
served: true
300+
storage: false
300301
# This indicates the v1alpha1 version of the custom resource is deprecated.
301302
# API requests to this version receive a warning header in the server response.
302303
deprecated: true
303304
# This overrides the default warning returned to API clients making v1alpha1 API requests.
304305
deprecationWarning: "example.com/v1alpha1 CronTab is deprecated; see http://example.com/v1alpha1-v1 for instructions to migrate to example.com/v1 CronTab"
306+
305307
schema: ...
306308
- name: v1beta1
307309
served: true
@@ -334,6 +336,7 @@ spec:
334336
versions:
335337
- name: v1alpha1
336338
served: true
339+
storage: false
337340
# This indicates the v1alpha1 version of the custom resource is deprecated.
338341
# API requests to this version receive a warning header in the server response.
339342
deprecated: true

0 commit comments

Comments
 (0)