@@ -12,6 +12,9 @@ VERSION ?= 0.0.0-dev
1212# INSTASCALE_VERSION defines the default version of the InstaScale controller
1313INSTASCALE_VERSION ?= v0.0.4
1414
15+ # MCAD_VERSION defines the default version of the MCAD controller
16+ MCAD_VERSION ?= v1.31.0
17+
1518# CHANNELS define the bundle channels used in the bundle.
1619# Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable")
1720# To re-generate a bundle for other specific channels without changing the standard setup, you can:
@@ -200,6 +203,7 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified
200203
201204.PHONY : deploy
202205deploy : manifests kustomize # # Deploy controller to the K8s cluster specified in ~/.kube/config.
206+ $(KUSTOMIZE ) fn run config/crd/mcad --image gcr.io/kpt-fn/apply-setters:v0.2.0 -- MCAD_VERSION=$(MCAD_VERSION )
203207 cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
204208 $(KUSTOMIZE ) build config/default | kubectl apply -f -
205209 git restore config/*
@@ -297,6 +301,7 @@ validate-bundle: install-operator-sdk
297301.PHONY : bundle
298302bundle : defaults manifests kustomize install-operator-sdk # # Generate bundle manifests and metadata, then validate generated files.
299303 $(OPERATOR_SDK ) generate kustomize manifests -q
304+ $(KUSTOMIZE ) fn run config/crd/mcad --image gcr.io/kpt-fn/apply-setters:v0.2.0 -- MCAD_VERSION=$(MCAD_VERSION )
300305 cd config/manager && $(KUSTOMIZE ) edit set image controller=$(IMG )
301306 cd config/manifests && $(KUSTOMIZE ) edit add patch --patch ' [{"op":"add", "path":"/metadata/annotations/containerImage", "value": "$(IMG)" }]' --kind ClusterServiceVersion
302307 cd config/manifests && $(KUSTOMIZE ) edit add patch --patch ' [{"op":"add", "path":"/spec/replaces", "value": "codeflare-operator.v$(PREVIOUS_VERSION)" }]' --kind ClusterServiceVersion
0 commit comments