From 8b1209d9481ada814d3cfe31ea01f0ae38d6b3a4 Mon Sep 17 00:00:00 2001 From: Chandan Singh Date: Wed, 12 Oct 2022 18:13:03 +0530 Subject: [PATCH] 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 --- .../custom-resources/custom-resource-definition-versioning.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/en/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning.md b/content/en/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning.md index e1bbaba45bd..184182ba17a 100644 --- a/content/en/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning.md +++ b/content/en/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning.md @@ -297,11 +297,13 @@ spec: versions: - name: v1alpha1 served: true + storage: false # This indicates the v1alpha1 version of the custom resource is deprecated. # API requests to this version receive a warning header in the server response. deprecated: true # This overrides the default warning returned to API clients making v1alpha1 API requests. deprecationWarning: "example.com/v1alpha1 CronTab is deprecated; see http://example.com/v1alpha1-v1 for instructions to migrate to example.com/v1 CronTab" + schema: ... - name: v1beta1 served: true @@ -334,6 +336,7 @@ spec: versions: - name: v1alpha1 served: true + storage: false # This indicates the v1alpha1 version of the custom resource is deprecated. # API requests to this version receive a warning header in the server response. deprecated: true