Skip to content

Commit 47233f2

Browse files
Merge pull request #53 from CodeForPhilly/develop
Release: v0.1.6
2 parents 62d9ef3 + 0eb132b commit 47233f2

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

helm-chart/templates/database/statefulset.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,11 @@ spec:
2929
containers:
3030
- name: postgresql
3131
image: {{ .Values.postgresql.image.repository }}:{{ .Values.postgresql.image.tag }}
32-
{{- if or .Values.postgresql.config .Values.postgresql.existingSecret }}
33-
envFrom:
34-
{{- if .Values.postgresql.config }}
35-
- configMapRef:
36-
name: {{ include "third-places.fullname" . }}-postgresql
37-
{{- end }}
3832
{{- if .Values.postgresql.existingSecret }}
33+
envFrom:
3934
- secretRef:
4035
name: {{ .Values.postgresql.existingSecret }}
4136
{{- end }}
42-
{{- end }}
4337
ports:
4438
- containerPort: 5432
4539
name: postgresql

helm-chart/templates/deployment.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ spec:
3535
- name: PGPORT
3636
value: "5432"
3737
- name: PGDATABASE
38-
value: thirdplaces
38+
valueFrom:
39+
secretKeyRef:
40+
name: {{ .Values.postgresql.existingSecret }}
41+
key: POSTGRES_DB
3942
- name: PGUSER
4043
valueFrom:
4144
secretKeyRef:

helm-chart/values.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,14 @@ affinity: {}
5656

5757
postgresql:
5858
image:
59-
repository: postgres
60-
tag: 13
59+
repository: postgis/postgis
60+
tag: 13-3.1
6161
imagePullSecrets: {}
6262
replicas: 1
6363
volumes:
6464
data:
6565
size: 5Gi
6666
existingSecret: postgresql
67-
config: {}
6867
podAnnotations: {}
6968
nodeSelector: {}
7069
affinity: {}

0 commit comments

Comments
 (0)