Skip to content

Commit 02f5521

Browse files
fix: avoid rendering empty env key in querier deployment (#650)
Signed-off-by: Artem Muterko <artem@sopho.tech> Co-authored-by: Tom Hayward <thayward@infoblox.com>
1 parent 689a01c commit 02f5521

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## master / unreleased
44

5+
* [BUGFIX] Querier: avoid rendering empty `env:` key when no env vars are set
56
* [BUGFIX] Ruler: fix sidecar securityContext using main container's condition instead of sidecar's
67

78
## 3.3.4 / 2026-06-23

templates/querier/querier-dep.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ spec:
8888
{{- if .Values.querier.containerSecurityContext.enabled }}
8989
securityContext: {{- omit .Values.querier.containerSecurityContext "enabled" | toYaml | nindent 12 }}
9090
{{- end }}
91+
{{- if .Values.querier.env }}
9192
env:
92-
{{- if .Values.querier.env }}
93-
{{- toYaml .Values.querier.env | nindent 12 }}
94-
{{- end }}
93+
{{- toYaml .Values.querier.env | nindent 12 }}
94+
{{- end }}
9595
{{- with .Values.querier.lifecycle }}
9696
lifecycle:
9797
{{- toYaml . | nindent 12 }}

0 commit comments

Comments
 (0)