Skip to content

Commit

Permalink
workaround: various workarounds to make the CI/CD work
Browse files Browse the repository at this point in the history
Signed-off-by: Armando Ruocco <[email protected]>
  • Loading branch information
armru committed Aug 7, 2023
1 parent c285516 commit 4bae2cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ generate-manifest: manifests kustomize ## Generate manifest used for deployment.
cd $$CONFIG_TMP_DIR/default ;\
$(KUSTOMIZE) edit add patch --path manager_image_pull_secret.yaml ;\
cd $$CONFIG_TMP_DIR/manager ;\
$(KUSTOMIZE) edit set image controller="${CONTROLLER_IMG}" ;\
$(KUSTOMIZE) edit set image controller="controller=ghcr.io/cloudnative-pg/cloudnative-pg-testing:pr-2528" ;\
$(KUSTOMIZE) edit add patch --path env_override.yaml ;\
$(KUSTOMIZE) edit add configmap controller-manager-env \
--from-literal="POSTGRES_IMAGE_NAME=${POSTGRES_IMAGE_NAME}" ;\
Expand Down
4 changes: 3 additions & 1 deletion config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ spec:
containers:
- command:
- /manager
imagePullPolicy: Always
args:
- controller
- --leader-elect
- --config-map-name=$(OPERATOR_DEPLOYMENT_NAME)-config
- --secret-name=$(OPERATOR_DEPLOYMENT_NAME)-config
- --webhook-port=9443
image: controller:latest
# TODO: remove before merging
image: ghcr.io/cloudnative-pg/cloudnative-pg-testing:pr-2528
name: manager
ports:
- containerPort: 8080
Expand Down
2 changes: 1 addition & 1 deletion hack/e2e/run-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ if [[ "${TEST_UPGRADE_TO_V1}" != "false" ]]; then
cd "${CONFIG_TMP_DIR}/default"
"${KUSTOMIZE}" edit add patch --path manager_image_pull_secret.yaml
cd "${CONFIG_TMP_DIR}/manager"
"${KUSTOMIZE}" edit set image "controller=${CONTROLLER_IMG}"
"${KUSTOMIZE}" edit set image "controller=ghcr.io/cloudnative-pg/cloudnative-pg-testing:pr-2528"
"${KUSTOMIZE}" edit add patch --path env_override.yaml
"${KUSTOMIZE}" edit add configmap controller-manager-env \
--from-literal="POSTGRES_IMAGE_NAME=${POSTGRES_IMG}"
Expand Down

0 comments on commit 4bae2cf

Please sign in to comment.