Skip to content

Commit 3f10b02

Browse files
committed
Altered Makefile to use passed image
1 parent b4b8048 commit 3f10b02

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified
179179

180180
.PHONY: deploy
181181
deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
182-
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
182+
cd config/e2e && IMAGE=$(IMG) perl -i -pe 's/odh-codeflare-operator-controller-image=(.*)$$/odh-codeflare-operator-controller-image=$$ENV{"IMAGE"}/' params.env
183+
cd config/manifests && IMAGE=$(IMG) perl -i -pe 's/odh-codeflare-operator-controller-image=(.*)$$/odh-codeflare-operator-controller-image=$$ENV{"IMAGE"}/' bases/params.env
183184
$(KUSTOMIZE) build config/${ENV} | kubectl apply -f -
184185
git restore config/*
185186

config/manager/kustomization.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,3 @@ resources:
33

44
generatorOptions:
55
disableNameSuffixHash: true
6-
apiVersion: kustomize.config.k8s.io/v1beta1
7-
kind: Kustomization
8-
images:
9-
- name: controller
10-
newName: quay.io/project-codeflare/codeflare-operator
11-
newTag: v0.0.0-dev

0 commit comments

Comments
 (0)