Skip to content

Commit

Permalink
Remove preserveUnknownFields from v1 CRD
Browse files Browse the repository at this point in the history
It's being removed by the API server anyway
  • Loading branch information
ccremer committed Mar 30, 2021
1 parent 81d9091 commit ff77671
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ metadata:
creationTimestamp: null
name: prebackuppods.backup.appuio.ch
spec:
preserveUnknownFields: false
group: backup.appuio.ch
names:
kind: PreBackupPod
Expand Down
2 changes: 1 addition & 1 deletion generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ff77671

Please sign in to comment.