File tree 4 files changed +18
-3
lines changed
4 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 54
54
echo Deploying CodeFlare operator
55
55
IMG="${REGISTRY_ADDRESS}"/codeflare-operator
56
56
make image-push -e IMG="${IMG}"
57
- make deploy -e IMG="${IMG}"
57
+ make deploy -e IMG="${IMG}" -e ENV="e2e"
58
58
kubectl wait --timeout=120s --for=condition=Available=true deployment -n openshift-operators codeflare-operator-manager
59
59
60
60
echo Setting up CodeFlare stack
Original file line number Diff line number Diff line change @@ -87,6 +87,10 @@ IMG ?= ${IMAGE_TAG_BASE}:${VERSION}
87
87
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
88
88
ENVTEST_K8S_VERSION = 1.24.2
89
89
90
+ # The target deployment environment, that corresponds to the Kustomize directory
91
+ # used to build the manifests.
92
+ ENV ?= default
93
+
90
94
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
91
95
ifeq (,$(shell go env GOBIN) )
92
96
GOBIN =$(shell go env GOPATH) /bin
@@ -202,13 +206,13 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified
202
206
deploy : manifests kustomize # # Deploy controller to the K8s cluster specified in ~/.kube/config.
203
207
$(SED ) -i -E " s|(- )\$ {MCAD_REPO}.*|\1\$ {MCAD_CRD}|" config/crd/mcad/kustomization.yaml
204
208
cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
205
- $(KUSTOMIZE ) build config/default | kubectl apply -f -
209
+ $(KUSTOMIZE ) build config/${ENV} | kubectl apply -f -
206
210
git restore config/*
207
211
208
212
.PHONY : undeploy
209
213
undeploy : # # Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
210
214
$(SED ) -i -E " s|(- )\$ {MCAD_REPO}.*|\1\$ {MCAD_CRD}|" config/crd/mcad/kustomization.yaml
211
- $(KUSTOMIZE ) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
215
+ $(KUSTOMIZE ) build config/${ENV} | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
212
216
git restore config/*
213
217
214
218
# #@ Build Dependencies
Original file line number Diff line number Diff line change
1
+ bases :
2
+ - ../default
3
+
4
+ patches :
5
+ - target :
6
+ kind : Deployment
7
+ name : manager
8
+ namespace : system
9
+ path : patch_resources.yaml
Original file line number Diff line number Diff line change
1
+ - op : remove
2
+ path : /spec/template/spec/containers/0/resources
You can’t perform that action at this time.
0 commit comments