Skip to content

Commit

Permalink
Merge pull request #287 from akash4sh/main
Browse files Browse the repository at this point in the history
config: modify postgresql to postgresDatasource in values.yaml
  • Loading branch information
akash4sh authored Jun 19, 2024
2 parents b6c6d43 + 7449cf1 commit fc2d148
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/grafana/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ name: grafana
sources:
- https://github.com/grafana/grafana
type: application
version: 1.0.8
version: 1.0.9
dependencies:
- name: postgresql
condition: postgresql.enabled
Expand Down
12 changes: 6 additions & 6 deletions charts/grafana/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -538,17 +538,17 @@ containers:
key: {{ .Values.Clickhouse.existingSecret.passwordkey }}
{{- end }}
{{- end }}
{{- if .Values.postgresql.enabled }}
{{- if .Values.postgresDatasource.enabled }}
- name: POSTGRESQL_USERNAME
value: {{ .Values.postgresql.username }}
value: {{ .Values.postgresDatasource.username }}
- name: POSTGRESQL_PASSWORD
{{- if not .Values.postgresql.existingSecret }}
value: {{ .Values.postgresql.password }}
{{- if not .Values.postgresDatasource.existingSecret }}
value: {{ .Values.postgresDatasource.password }}
{{- else }}
valueFrom:
secretKeyRef:
name: {{ .Values.postgresql.existingSecret.name }}
key: {{ .Values.postgresql.existingSecret.passwordkey }}
name: {{ .Values.postgresDatasource.existingSecret.name }}
key: {{ .Values.postgresDatasource.existingSecret.passwordkey }}
{{- end }}
{{- end }}
{{- if .Values.imageRenderer.enabled }}
Expand Down
2 changes: 1 addition & 1 deletion charts/grafana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ Clickhouse:
# usernamekey: ""
# passwordkey: ""

postgresql:
postgresDatasource:
enabled: false
username: ""
password: ""
Expand Down

0 comments on commit fc2d148

Please sign in to comment.