Skip to content

Commit cfea75e

Browse files
authored
Add manager kustomize check (#155)
* Add manager kustomize check Signed-off-by: Maysun J Faisal <[email protected]> * Revert Manager Kustomize default img Signed-off-by: Maysun J Faisal <[email protected]>
1 parent 163d083 commit cfea75e

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.github/workflows/pr.yml

+4
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ jobs:
106106
- name: Run Go Tests
107107
run: |
108108
make test
109+
- name: Check if Manager Kustomize has the right image
110+
run: |
111+
./check-manager-kustomize.sh
112+
exit $?
109113
- name: Upload coverage to Codecov
110114
uses: codecov/[email protected]
111115
docker:

check-manager-kustomize.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
THIS_DIR="$(dirname "$(realpath "$0")")"
4+
MANAGER_KUSTOMIZATION="$( realpath ${THIS_DIR}/config/manager/kustomization.yaml)"
5+
6+
cat ${MANAGER_KUSTOMIZATION} | grep "newName: quay.io/redhat-appstudio/application-service"
7+
8+
exit $?

config/manager/kustomization.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
1919
kind: Kustomization
2020
images:
2121
- name: controller
22-
newName: maysunfaisal/hasoperator
23-
newTag: "100"
22+
newName: quay.io/redhat-appstudio/application-service
23+
newTag: next

0 commit comments

Comments
 (0)