From ff776710a9dca22f0e743a937d72404e564f19de Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 30 Mar 2021 10:43:50 +0200 Subject: [PATCH] Remove preserveUnknownFields from v1 CRD It's being removed by the API server anyway --- .../v1/base/backup.appuio.ch_prebackuppods.yaml | 1 - generate.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/config/crd/apiextensions.k8s.io/v1/base/backup.appuio.ch_prebackuppods.yaml b/config/crd/apiextensions.k8s.io/v1/base/backup.appuio.ch_prebackuppods.yaml index 504887370..c2837cd84 100644 --- a/config/crd/apiextensions.k8s.io/v1/base/backup.appuio.ch_prebackuppods.yaml +++ b/config/crd/apiextensions.k8s.io/v1/base/backup.appuio.ch_prebackuppods.yaml @@ -8,7 +8,6 @@ metadata: creationTimestamp: null name: prebackuppods.backup.appuio.ch spec: - preserveUnknownFields: false group: backup.appuio.ch names: kind: PreBackupPod diff --git a/generate.go b/generate.go index 14add0f8d..bfda85998 100644 --- a/generate.go +++ b/generate.go @@ -19,7 +19,7 @@ import ( "os" ) -var patchFiles = []string{"v1beta1/base/backup.appuio.ch_prebackuppods.yaml", "v1/base/backup.appuio.ch_prebackuppods.yaml"} +var patchFiles = []string{"v1beta1/base/backup.appuio.ch_prebackuppods.yaml"} // controller-gen 0.3 creates CRDs with apiextensions.k8s.io/v1beta1, but some generated properties aren't valid for that version // in K8s 1.18+. We would have to switch to apiextensions.k8s.io/v1, but that would make the CRD incompatible with OpenShift 3.11.