Skip to content

Commit

Permalink
fix(cost-analyzer): Set remoreWrite env variables only when enabled (k…
Browse files Browse the repository at this point in the history
  • Loading branch information
than-pet authored Sep 19, 2023
1 parent 962fd59 commit 1a3addb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -654,11 +654,11 @@ spec:
value: {{ (quote .Values.kubecostProductConfigs.regionOverrides) }}
{{- end }}
{{- end }}
- name: REMOTE_WRITE_PASSWORD
value: {{ .Values.remoteWrite.postgres.auth.password }}
{{- if .Values.remoteWrite.postgres.enabled }}
- name: REMOTE_WRITE_ENABLED
value: "true"
- name: REMOTE_WRITE_PASSWORD
value: {{ .Values.remoteWrite.postgres.auth.password }}
{{- end }}
{{- if .Values.global.thanos.queryServiceBasicAuthSecretName}}
- name: MC_BASIC_AUTH_USERNAME
Expand Down

0 comments on commit 1a3addb

Please sign in to comment.