Skip to content

Commit

Permalink
adding imagePullSecret
Browse files Browse the repository at this point in the history
Signed-off-by: wdower <will@dower.dev>
  • Loading branch information
wdower committed Mar 17, 2024
1 parent c321a65 commit 45339de
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vulcan/templates/postgres-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ spec: # of the deployment
labels:
app: postgres # match spec.selector.matchlabels
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext:
{{- toYaml .Values.postgresql.podSecurityContext | nindent 8 }}
volumes:
- name: {{ include "vulcan.fullname" . }}-pv-volume # must match PV
{{- if .Values.postgresql.persistence.enabled }}
Expand Down
6 changes: 6 additions & 0 deletions vulcan/templates/vulcan-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ spec:
labels: # must match service and replicaset matchlabel
app: {{ include "vulcan.fullname" . }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext:
{{- toYaml .Values.heimdall.podSecurityContext | nindent 8 }}
initContainers:
- name: check-db-ready
image: {{.Values.postgresql.image.repository}}:{{ .Values.postgresql.image.tag }}
Expand Down
3 changes: 3 additions & 0 deletions vulcan/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,6 @@ vulcan:
nodeSelector: {}
tolerations: []
affinity: {}

# imagePullSecrets:
# - name: your-secret-name

0 comments on commit 45339de

Please sign in to comment.