@@ -12,6 +12,9 @@ VERSION ?= 0.0.0-dev
12
12
# INSTASCALE_VERSION defines the default version of the InstaScale controller
13
13
INSTASCALE_VERSION ?= v0.0.4
14
14
15
+ # MCAD_VERSION defines the default version of the MCAD controller
16
+ MCAD_VERSION ?= v1.31.0
17
+
15
18
# CHANNELS define the bundle channels used in the bundle.
16
19
# Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable")
17
20
# 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
200
203
201
204
.PHONY : deploy
202
205
deploy : 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 )
203
207
cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
204
208
$(KUSTOMIZE ) build config/default | kubectl apply -f -
205
209
git restore config/*
@@ -297,6 +301,7 @@ validate-bundle: install-operator-sdk
297
301
.PHONY : bundle
298
302
bundle : defaults manifests kustomize install-operator-sdk # # Generate bundle manifests and metadata, then validate generated files.
299
303
$(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 )
300
305
cd config/manager && $(KUSTOMIZE ) edit set image controller=$(IMG )
301
306
cd config/manifests && $(KUSTOMIZE ) edit add patch --patch ' [{"op":"add", "path":"/metadata/annotations/containerImage", "value": "$(IMG)" }]' --kind ClusterServiceVersion
302
307
cd config/manifests && $(KUSTOMIZE ) edit add patch --patch ' [{"op":"add", "path":"/spec/replaces", "value": "codeflare-operator.v$(PREVIOUS_VERSION)" }]' --kind ClusterServiceVersion
0 commit comments