Skip to content

Commit

Permalink
Fix helm chart use of Postgres Password (mastodon#19537)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb authored Oct 29, 2022
1 parent 30ef110 commit 6094a91
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion chart/templates/cronjob-media-remove.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ spec:
valueFrom:
secretKeyRef:
name: {{ template "mastodon.postgresql.secretName" . }}
key: postgresql-password
key: postgres-password
- name: "REDIS_PASSWORD"
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/deployment-sidekiq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ spec:
valueFrom:
secretKeyRef:
name: {{ template "mastodon.postgresql.secretName" . }}
key: postgresql-password
key: postgres-password
- name: "REDIS_PASSWORD"
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/deployment-streaming.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
valueFrom:
secretKeyRef:
name: {{ template "mastodon.postgresql.secretName" . }}
key: postgresql-password
key: postgres-password
- name: "REDIS_PASSWORD"
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/deployment-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ spec:
valueFrom:
secretKeyRef:
name: {{ template "mastodon.postgresql.secretName" . }}
key: postgresql-password
key: postgres-password
- name: "REDIS_PASSWORD"
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/job-assets-precompile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
valueFrom:
secretKeyRef:
name: {{ template "mastodon.postgresql.secretName" . }}
key: postgresql-password
key: postgres-password
- name: "REDIS_PASSWORD"
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/job-chewy-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ spec:
valueFrom:
secretKeyRef:
name: {{ template "mastodon.postgresql.secretName" . }}
key: postgresql-password
key: postgres-password
- name: "REDIS_PASSWORD"
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/job-create-admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
valueFrom:
secretKeyRef:
name: {{ template "mastodon.postgresql.secretName" . }}
key: postgresql-password
key: postgres-password
- name: "REDIS_PASSWORD"
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/job-db-migrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
valueFrom:
secretKeyRef:
name: {{ template "mastodon.postgresql.secretName" . }}
key: postgresql-password
key: postgres-password
- name: "REDIS_PASSWORD"
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ data:
{{- end }}
{{- if not .Values.postgresql.enabled }}
{{- if not .Values.postgresql.auth.existingSecret }}
postgresql-password: "{{ .Values.postgresql.auth.password | b64enc }}"
postgres-password: "{{ .Values.postgresql.auth.password | b64enc }}"
{{- end }}
{{- end }}
{{- end -}}

0 comments on commit 6094a91

Please sign in to comment.