Commit 55bfe0f
committed
fix(keycloak): reword comments to avoid kcc substitutor false matches
kcc resolves $(env:VAR) placeholders via Apache Commons StringSubstitutor
over the whole file BEFORE parsing as YAML, so even comments are
scanned for unresolved variables. The previous comment block in
keycloak_defaults.yaml literally described the placeholder pattern as
"$(env:VAR)", which kcc treated as a real reference and failed with
"Cannot resolve variable 'env:VAR' (enableSubstitutionInVariables=true)"
before applying anything.
Rewords the comment to describe the syntax without writing the literal
shape, and adds an explicit warning so future editors don't reintroduce
the trap.
Caught during E2E on the refactored branch: the new
keycloak-config-import Secret carried the original comment verbatim,
so the kcc Job failed-fast on every retry until the comment was
sanitized. Post-fix E2E (kind-nebari-local, fresh deploy) ran the kcc
Job to completion in seconds and produced the expected realm state
(all 7 default scopes on both realm and argocd client, both
argocd-admins/argocd-viewers groups, admin user member of
argocd-admins).1 parent 30a05a8 commit 55bfe0f
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
0 commit comments