Skip to content

Commit

Permalink
Revert "chore: update postgres user password on init (#214)"
Browse files Browse the repository at this point in the history
This reverts commit e206bf0.
  • Loading branch information
moshloop authored Dec 26, 2024
1 parent e206bf0 commit 61b3c0c
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions chart/templates/postgres.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
{{- if eq .Values.db.create true }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: postgresql-scripts
data:
post-startup.sh: |
#!/bin/bash
psql -U postgres -c "ALTER USER postgres PASSWORD '${POSTGRES_PASSWORD}';"
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand All @@ -35,10 +26,6 @@ spec:
optional: true
- name: logs
emptyDir: {}
- name: scripts
configMap:
name: postgresql-scripts
defaultMode: 0755

initContainers:
- command:
Expand Down Expand Up @@ -70,11 +57,6 @@ spec:
value: /var/lib/postgresql/data
- name: POSTGRES_DB
value: mission_control
startupProbe:
initialDelaySeconds: 15
exec:
command:
- /post-startup.sh
volumeMounts:
- name: dshm
mountPath: /dev/shm
Expand All @@ -83,9 +65,6 @@ spec:
subPath: postgres
- name: logs
mountPath: /var/log/postgresql
- name: scripts
mountPath: /post-startup.sh
subPath: post-startup.sh
envFrom:
- secretRef:
name: {{ .Values.db.secretKeyRef.name }}
Expand Down

0 comments on commit 61b3c0c

Please sign in to comment.