@@ -37,10 +37,9 @@ BUNDLE_IMG ?= $(IMAGE_TAG_BASE)-bundle:v$(VERSION)
3737
3838# Image URL to use all building/pushing image targets
3939IMG ?= $(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+
4241# 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
4443
4544# Change DOCKERFILE tp openshift.Dockerfile to build Openshift image
4645DOCKERFILE ?= Dockerfile
@@ -80,7 +79,7 @@ help: ## Display this help.
8079# #@ Development
8180
8281manifests : 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
8483
8584generate : controller-gen # # Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
8685 $(CONTROLLER_GEN ) object:headerFile=" hack/boilerplate.go.txt" paths=" ./..."
@@ -137,7 +136,7 @@ undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/confi
137136
138137CONTROLLER_GEN = $(shell pwd) /bin/controller-gen
139138controller-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 )
141140
142141KUSTOMIZE = $(shell pwd) /bin/kustomize
143142kustomize : # # Download kustomize locally if necessary.
0 commit comments