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:
|
secretKeyRef:
|
||||||
name: sizer-tokens
|
name: sizer-tokens
|
||||||
key: hmac-key
|
key: hmac-key
|
||||||
|
{{{ if .Env.GARM_URL }}}
|
||||||
- name: GARM_URL
|
- name: GARM_URL
|
||||||
value: "http://garm.garm.svc.cluster.local:80"
|
value: "{{{ .Env.GARM_URL }}}"
|
||||||
- name: GARM_USER
|
- name: GARM_USER
|
||||||
value: "admin"
|
value: "{{{ .Env.GARM_USER }}}"
|
||||||
- name: GARM_PASSWORD
|
- name: GARM_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: garm-fixed-credentials
|
name: garm-fixed-credentials
|
||||||
key: admin_password
|
key: admin_password
|
||||||
|
{{{ end }}}
|
||||||
- name: RECEIVER_OIDC_ISSUER
|
- name: RECEIVER_OIDC_ISSUER
|
||||||
value: "https://dex.{{{ .Env.DOMAIN }}}"
|
value: "https://dex.{{{ .Env.DOMAIN }}}"
|
||||||
- name: RECEIVER_OIDC_CLIENT_ID
|
- name: RECEIVER_OIDC_CLIENT_ID
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue