Skip to content

Commit 8626fd1

Browse files
committed
Moved params to manifests and fixed manager
1 parent c63f88d commit 8626fd1

File tree

8 files changed

+20
-20
lines changed

8 files changed

+20
-20
lines changed

.github/workflows/tag-and-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
105105
- name: Update image version in params.env
106106
run: |
107-
VERSION=${{ github.event.inputs.version }} perl -i -pe 's/:(.*)$/:$ENV{"VERSION"}/' config/manager/params.env
107+
VERSION=${{ github.event.inputs.version }} perl -i -pe 's/:(.*)$/:$ENV{"VERSION"}/' config/manifests/bases/params.env
108108
shell: bash
109109

110110
- name: Login to Quay.io

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified
198198

199199
.PHONY: deploy
200200
deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
201-
cd config/manager && IMAGE=$(IMG) perl -i -pe 's/odh-codeflare-operator-controller-image=(.*)$$/odh-codeflare-operator-controller-image=$$ENV{"IMAGE"}/' params.env
201+
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
202202
$(KUSTOMIZE) build config/${ENV} | kubectl apply -f -
203203
git restore config/*
204204

config/manager/kustomization.yaml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
resources:
22
- manager.yaml
33

4-
configMapGenerator:
5-
- name: codeflare-stack-config
6-
envs:
7-
- params.env
8-
configurations:
9-
- params.yaml
10-
11-
vars:
12-
- name: odh_codeflare_operator_controller_image
13-
objref:
14-
kind: ConfigMap
15-
name: codeflare-stack-config
16-
apiVersion: v1
17-
fieldref:
18-
fieldpath: data.odh-codeflare-operator-controller-image
19-
204
generatorOptions:
215
disableNameSuffixHash: true

config/manager/manager.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ spec:
3434
containers:
3535
- command:
3636
- /manager
37-
image: $(odh_codeflare_operator_controller_image)
37+
image: controller:latest
3838
imagePullPolicy: Always
3939
name: manager
4040
securityContext:

config/manager/params.env

Lines changed: 0 additions & 1 deletion
This file was deleted.

config/manifests/bases/params.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
odh-codeflare-operator-controller-image=quay.io/opendatahub/codeflare-operator:v1.0.0
File renamed without changes.

config/manifests/kustomization.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,19 @@ resources:
66
- ../scorecard
77
apiVersion: kustomize.config.k8s.io/v1beta1
88
kind: Kustomization
9+
10+
configMapGenerator:
11+
- name: codeflare-stack-config
12+
envs:
13+
- bases/params.env
14+
configurations:
15+
- bases/params.yaml
16+
17+
vars:
18+
- name: odh-codeflare-operator-controller-image
19+
objref:
20+
kind: ConfigMap
21+
name: codeflare-stack-config
22+
apiVersion: v1
23+
fieldref:
24+
fieldpath: data.odh-codeflare-operator-controller-image

0 commit comments

Comments
 (0)