Skip to content

Commit 84a3330

Browse files
authored
Merge pull request #398 from talset/master
Configuration options for the PostgreSQL and concourseMigration
2 parents cfaf5f7 + 198ba1a commit 84a3330

3 files changed

Lines changed: 38 additions & 0 deletions

File tree

templates/postgres-statefulset.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,21 @@ spec:
2424
labels:
2525
app: "{{ template "concourse.postgresql.fullname" . }}"
2626
spec:
27+
{{- if .Values.postgresql.nodeSelector }}
28+
nodeSelector:
29+
{{ toYaml .Values.postgresql.nodeSelector | indent 8 }}
30+
{{- end }}
31+
serviceAccountName: "{{ .Values.rbac.postgresqlServiceAccountName }}"
32+
{{- if .Values.postgresql.tolerations }}
33+
tolerations:
34+
{{ toYaml .Values.postgresql.tolerations | indent 8 }}
35+
{{- end }}
36+
{{- if .Values.imagePullSecrets }}
37+
imagePullSecrets:
38+
{{- range .Values.imagePullSecrets }}
39+
- name: {{ . }}
40+
{{- end }}
41+
{{- end }}
2742
containers:
2843
- name: "{{ template "concourse.postgresql.fullname" . }}"
2944
{{- if .Values.postgresql.imageDigest }}

templates/web-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ spec:
6969
securityContext:
7070
{{- toYaml .Values.web.securityContext | nindent 12 }}
7171
{{- end }}
72+
{{- if .Values.web.concourseMigration.resources }}
73+
resources:
74+
{{ toYaml .Values.web.concourseMigration.resources | indent 12 }}
75+
{{- end }}
7276
env:
7377
{{- include "concourse.postgresql.env" . | indent 12 }}
7478
volumeMounts:

values.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2101,6 +2101,13 @@ web:
21012101
##
21022102
databaseInitContainers: []
21032103

2104+
## Configuration values for InitContainer that runs Concourse database migrations
2105+
concourseMigration:
2106+
## Configure resource requests and limits.
2107+
## Ref: https://kubernetes.io/docs/user-guide/compute-resources/
2108+
##
2109+
resources: {}
2110+
21042111
## Array of extra initContainers to run before Concourse Web starts
21052112
## container.
21062113
##
@@ -2881,6 +2888,14 @@ postgresql:
28812888
ephemeral-storage: 2Gi
28822889
memory: 512Mi
28832890

2891+
## Tolerations for the postgresql.
2892+
tolerations: []
2893+
2894+
## Node selector for the postgresql.
2895+
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
2896+
##
2897+
nodeSelector: {}
2898+
28842899
## Setup postgresql auth info, will be fed to concourse
28852900
## Those will be given to postgres using the standard env vars
28862901
## POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB
@@ -2988,6 +3003,10 @@ rbac:
29883003
## Any annotations required for the worker Service Account
29893004
workerServiceAccountAnnotations: {}
29903005

3006+
## The name of the service account to use for postgresql pods if rbac.create is false
3007+
##
3008+
postgresqlServiceAccountName: default
3009+
29913010
## For managing podSecurityPolicies. To make sure rbac objects are also created
29923011
## for the use of the podsecuritypolicy objects,
29933012
## set rbac.create to 'true' (this is the default value)

0 commit comments

Comments
 (0)