Retain the v1 API version in legacy CRDs

Signed-off-by: Richard Wall <richard.wall@jetstack.io>
This commit is contained in:
Richard Wall 2020-08-19 21:17:54 +01:00
parent 4c8d12badf
commit 1b9ea76057

View File

@ -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