@@ -14,6 +14,10 @@ INSTASCALE_VERSION ?= v0.0.4
14
14
15
15
# MCAD_VERSION defines the default version of the MCAD controller
16
16
MCAD_VERSION ?= v1.31.0
17
+ # MCAD_REF, MCAD_REPO and MCAD_CRD define the reference to MCAD CRD resources
18
+ MCAD_REF ?= release-${MCAD_VERSION}
19
+ MCAD_REPO ?= github.com/project-codeflare/multi-cluster-app-dispatcher
20
+ MCAD_CRD ?= ${MCAD_REPO}/config/crd?ref=${MCAD_REF}
17
21
18
22
# CHANNELS define the bundle channels used in the bundle.
19
23
# Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable")
@@ -203,7 +207,7 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified
203
207
204
208
.PHONY : deploy
205
209
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 )
210
+ $(KUSTOMIZE ) fn run config/crd/mcad --image gcr.io/kpt-fn/apply-setters:v0.2.0 -- MCAD_CRD =$(MCAD_CRD )
207
211
cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
208
212
$(KUSTOMIZE ) build config/default | kubectl apply -f -
209
213
git restore config/*
@@ -301,7 +305,7 @@ validate-bundle: install-operator-sdk
301
305
.PHONY : bundle
302
306
bundle : defaults manifests kustomize install-operator-sdk # # Generate bundle manifests and metadata, then validate generated files.
303
307
$(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 )
308
+ $(KUSTOMIZE ) fn run config/crd/mcad --image gcr.io/kpt-fn/apply-setters:v0.2.0 -- MCAD_CRD =$(MCAD_CRD )
305
309
cd config/manager && $(KUSTOMIZE ) edit set image controller=$(IMG )
306
310
cd config/manifests && $(KUSTOMIZE ) edit add patch --patch ' [{"op":"add", "path":"/metadata/annotations/containerImage", "value": "$(IMG)" }]' --kind ClusterServiceVersion
307
311
cd config/manifests && $(KUSTOMIZE ) edit add patch --patch ' [{"op":"add", "path":"/spec/replaces", "value": "codeflare-operator.v$(PREVIOUS_VERSION)" }]' --kind ClusterServiceVersion
0 commit comments