@@ -37,10 +37,9 @@ BUNDLE_IMG ?= $(IMAGE_TAG_BASE)-bundle:v$(VERSION)
37
37
38
38
# Image URL to use all building/pushing image targets
39
39
IMG ?= $(IMAGE_TAG_BASE ) :$(VERSION )
40
- # Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
41
- CRD_OPTIONS ?= "crd:trivialVersions=true,preserveUnknownFields=false"
40
+
42
41
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
43
- ENVTEST_K8S_VERSION = 1.21
42
+ ENVTEST_K8S_VERSION = 1.22
44
43
45
44
# Change DOCKERFILE tp openshift.Dockerfile to build Openshift image
46
45
DOCKERFILE ?= Dockerfile
@@ -80,7 +79,7 @@ help: ## Display this help.
80
79
# #@ Development
81
80
82
81
manifests : controller-gen # # Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
83
- $(CONTROLLER_GEN ) $( CRD_OPTIONS ) rbac:roleName=manager-role webhook paths=" ./..." output:crd:artifacts:config=config/crd/bases
82
+ $(CONTROLLER_GEN ) rbac:roleName=manager-role crd webhook paths=" ./..." output:crd:artifacts:config=config/crd/bases
84
83
85
84
generate : controller-gen # # Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
86
85
$(CONTROLLER_GEN ) object:headerFile=" hack/boilerplate.go.txt" paths=" ./..."
@@ -137,7 +136,7 @@ undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/confi
137
136
138
137
CONTROLLER_GEN = $(shell pwd) /bin/controller-gen
139
138
controller-gen : # # Download controller-gen locally if necessary.
140
- $(call go-get-tool,$(CONTROLLER_GEN ) ,sigs.k8s.io/controller-tools/cmd/controller-gen@v0.6.1 )
139
+ $(call go-get-tool,$(CONTROLLER_GEN ) ,sigs.k8s.io/controller-tools/cmd/controller-gen@v0.7.0 )
141
140
142
141
KUSTOMIZE = $(shell pwd) /bin/kustomize
143
142
kustomize : # # Download kustomize locally if necessary.
0 commit comments