From 32665ff6203bc90b44b69d1a0c2190e731c21950 Mon Sep 17 00:00:00 2001 From: Daniel Sy Date: Mon, 18 May 2026 10:15:58 +0200 Subject: [PATCH] =?UTF-8?q?fix(ci-sizer):=20=F0=9F=90=9B=20use=20safe=20ma?= =?UTF-8?q?p=20access=20for=20optional=20GARM=5FURL=20env=20var?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `index .Env "GARM_URL"` returns empty string for missing keys instead of panicking with "map has no entry for key". Ref: IPCEICIS-6886 --- template/stacks/ci-sizer/sizer-receiver/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/stacks/ci-sizer/sizer-receiver/deployment.yaml b/template/stacks/ci-sizer/sizer-receiver/deployment.yaml index 3f38b2d..884edb2 100644 --- a/template/stacks/ci-sizer/sizer-receiver/deployment.yaml +++ b/template/stacks/ci-sizer/sizer-receiver/deployment.yaml @@ -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