fix(sizer): 🐛 make GARM env vars conditional in receiver deployment
Clusters without GARM lack the garm-fixed-credentials secret, causing pod crash loops. The receiver already handles empty GARM_URL gracefully. Ref: IPCEICIS-6886
This commit is contained in:
parent
1f4489bd70
commit
adf7f23685
1 changed files with 4 additions and 2 deletions
|
|
@ -39,15 +39,17 @@ spec:
|
|||
secretKeyRef:
|
||||
name: sizer-tokens
|
||||
key: hmac-key
|
||||
{{{ if .Env.GARM_URL }}}
|
||||
- name: GARM_URL
|
||||
value: "http://garm.garm.svc.cluster.local:80"
|
||||
value: "{{{ .Env.GARM_URL }}}"
|
||||
- name: GARM_USER
|
||||
value: "admin"
|
||||
value: "{{{ .Env.GARM_USER }}}"
|
||||
- name: GARM_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: garm-fixed-credentials
|
||||
key: admin_password
|
||||
{{{ end }}}
|
||||
- name: RECEIVER_OIDC_ISSUER
|
||||
value: "https://dex.{{{ .Env.DOMAIN }}}"
|
||||
- name: RECEIVER_OIDC_CLIENT_ID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue