fix(ci-sizer): 🐛 use safe map access for optional GARM_URL env var

`index .Env "GARM_URL"` returns empty string for missing keys instead
of panicking with "map has no entry for key".

Ref: IPCEICIS-6886
This commit is contained in:
Daniel Sy 2026-05-18 10:15:58 +02:00
parent 2a12a568ce
commit 32665ff620
Signed by untrusted user: danielsy
GPG key ID: 1F39A8BBCD2EE3D3

View file

@ -39,7 +39,7 @@ spec:
secretKeyRef:
name: sizer-tokens
key: hmac-key
{{{ if .Env.GARM_URL }}}
{{{ if index .Env "GARM_URL" }}}
- name: GARM_URL
value: "{{{ .Env.GARM_URL }}}"
- name: GARM_USER