feat(keycloak): pin the operator source and both images by digest
The Keycloak Operator remote resource is pinned to the tag 26.7.0, and that tag's content changed once (live build-timestamp 2026-07-09, later renders 2026-07-23). Both images use the 26.7.0 tag with imagePullPolicy Always, so every restart depends on quay.io and could pull different bits. Pin the remote resource to the tag's commit, the operator image and RELATED_IMAGE_KEYCLOAK to the digests that were running on 2026-11-12 (pod imageID) and set the operator to IfNotPresent. The env value is set with a strategic merge patch keyed by name; a JSON patch by list index hit KUBERNETES_NAMESPACE instead. render-phase2.sh and apply-keycloak.sh check the commit and the digest. Risk: applying restarts the Keycloak operator once (restart window). Keycloak itself keeps running. Verification (desktop): render-phase2.sh passes; the rendered Deployment has the pinned image, IfNotPresent and the digest in RELATED_IMAGE_KEYCLOAK with the other env entries unchanged.
This commit is contained in:
@@ -189,8 +189,8 @@ assert_regex_count \
|
||||
|
||||
assert_regex_count \
|
||||
"${REPOSITORY_ROOT}/infrastructure/controllers/keycloak-operator/kustomization.yaml" \
|
||||
'github\.com/keycloak/keycloak-k8s-resources/kubernetes\?ref=26\.7\.0' 1 \
|
||||
"Keycloak Operator 26.7.0 source pin"
|
||||
'github\.com/keycloak/keycloak-k8s-resources/kubernetes\?ref=38fd7a0c84e15d4b66b37d1c2ea728ca2f5416a4' 1 \
|
||||
"Keycloak Operator 26.7.0 commit pin"
|
||||
assert_regex_count \
|
||||
"${render_temp_dir}/keycloak-operator.yaml" \
|
||||
'^kind:[[:space:]]CustomResourceDefinition$' 4 \
|
||||
|
||||
Reference in New Issue
Block a user