Skip to content

Commit f96fe8a

Browse files
committed
Remove CRD generation options trivialVersions and preserveUnknownFields.
These options have been removed from controller-gen.
1 parent e4b8ae8 commit f96fe8a

6 files changed

+5
-11
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ BUNDLE_IMG ?= $(IMAGE_TAG_BASE)-bundle:v$(VERSION)
3737

3838
# Image URL to use all building/pushing image targets
3939
IMG ?= controller:latest
40-
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
41-
CRD_OPTIONS ?= "crd:trivialVersions=true,preserveUnknownFields=false"
40+
CRD_OPTIONS ?= "crd"
4241

4342
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
4443
ifeq (,$(shell go env GOBIN))

config/crd/bases/postgres.glints.com_postgresconfigs.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.4.1
6+
controller-gen.kubebuilder.io/version: v0.8.0
87
creationTimestamp: null
98
name: postgresconfigs.postgres.glints.com
109
spec:

config/crd/bases/postgres.glints.com_postgresgrants.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.4.1
6+
controller-gen.kubebuilder.io/version: v0.8.0
87
creationTimestamp: null
98
name: postgresgrants.postgres.glints.com
109
spec:

config/crd/bases/postgres.glints.com_postgrespublications.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.4.1
6+
controller-gen.kubebuilder.io/version: v0.8.0
87
creationTimestamp: null
98
name: postgrespublications.postgres.glints.com
109
spec:

config/crd/bases/postgres.glints.com_postgrestables.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.4.1
6+
controller-gen.kubebuilder.io/version: v0.8.0
87
creationTimestamp: null
98
name: postgrestables.postgres.glints.com
109
spec:

config/rbac/role.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
---
32
apiVersion: rbac.authorization.k8s.io/v1
43
kind: ClusterRole

0 commit comments

Comments
 (0)