From 1b9ea760570c03a1c0d63c8bed86749c6c43446c Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Wed, 19 Aug 2020 21:17:54 +0100 Subject: [PATCH] Retain the v1 API version in legacy CRDs Signed-off-by: Richard Wall --- hack/filter-crd/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/filter-crd/main.go b/hack/filter-crd/main.go index 33abb4156..a7e9c862e 100644 --- a/hack/filter-crd/main.go +++ b/hack/filter-crd/main.go @@ -185,9 +185,9 @@ func loadVariant() { "spec/versions/[]/schema/openAPIV3Schema/properties/spec/properties/solver/properties/dns01/properties/webhook/properties/config/x-kubernetes-preserve-unknown-fields", } - // only retain the `v1alpha2` version in the CRD + // only retain the `v1` version in the CRD retainElementForValue = map[string]string{ - "spec/versions/[]/name": "v1alpha2", + "spec/versions/[]/name": "v1", } singleCRDVersion = true