Skip to content

Commit

Permalink
Workaround for nightly operator pointing to non-existing image
Browse files Browse the repository at this point in the history
Relates to #831

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
  • Loading branch information
ahus1 committed May 27, 2024
1 parent ed37d22 commit 14fd478
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion provision/keycloak-tasks/Utils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ tasks:
- KUBECONFIG
vars:
OPERATOR_IMAGE:
sh: cat .task/var-KC_OPERATOR_CONTAINER_IMAGE 2> /dev/null || echo ""
# workaround for image pointing to the wrong place, hard-setting to "quay.io/keycloak/keycloak-operator:nightly" instead - revert to empty string once this is fixed
# https://github.com/keycloak/keycloak-benchmark/issues/831
sh: cat .task/var-KC_OPERATOR_CONTAINER_IMAGE 2> /dev/null || echo "quay.io/keycloak/keycloak-operator:nightly"
cmds:
- |
(test -n "{{.OPERATOR_IMAGE}}" && KUBECONFIG="{{.KUBECONFIG}}" kubectl patch deployment keycloak-operator -n {{.NAMESPACE}} --type json -p '[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value": "{{.OPERATOR_IMAGE}}"}]') || true
Expand Down

0 comments on commit 14fd478

Please sign in to comment.