Skip to content

Commit

Permalink
Helm chart: image pull secrets (#384)
Browse files Browse the repository at this point in the history
Make the image pull secrets configurable for the stateful set rendered by the helm chart.

Fixes: #383
  • Loading branch information
hsudbrock authored Apr 15, 2024
1 parent 4856c13 commit b0b16b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helm/vernemq/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ spec:
spec:
serviceAccountName: {{ include "vernemq.serviceAccountName" . }}
terminationGracePeriodSeconds: {{ .Values.statefulset.terminationGracePeriodSeconds }}
{{- with .Values.statefulset.imagePullSecrets }}
imagePullSecrets:
{{- range . }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
2 changes: 2 additions & 0 deletions helm/vernemq/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ statefulset:
labels: {}
podLabels: {}
lifecycle: {}
imagePullSecrets:
# - "my-image-pull-secret"

pdb:
enabled: false
Expand Down

0 comments on commit b0b16b7

Please sign in to comment.