Skip to content

Commit

Permalink
helm: Enable setting imagePullSecrets (dagger#9609)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaffet authored Feb 20, 2025
1 parent ecf7516 commit 92db43a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Added-20250218-113020.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Added
body: 'helm: Enable setting imagePullSecrets'
time: 2025-02-18T11:30:20.657036Z
custom:
Author: vmaffet
PR: "9609"
4 changes: 4 additions & 0 deletions helm/dagger/templates/engine-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ spec:
{{- if .Values.engine.priorityClassName }}
priorityClassName: {{ .Values.engine.priorityClassName }}
{{- end }}
{{- with .Values.engine.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: dagger-engine
image: {{ if .Values.engine.image.ref }}{{ .Values.engine.image.ref }}{{ else }}registry.dagger.io/engine:v{{ .Chart.Version }}{{ end }}
Expand Down
4 changes: 4 additions & 0 deletions helm/dagger/templates/engine-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ spec:
{{- if .Values.engine.priorityClassName }}
priorityClassName: {{ .Values.engine.priorityClassName }}
{{- end }}
{{- with .Values.engine.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: dagger-engine
image: {{ if .Values.engine.image.ref }}{{ .Values.engine.image.ref }}{{ else }}registry.dagger.io/engine:v{{ .Chart.Version }}{{ end }}
Expand Down
6 changes: 6 additions & 0 deletions helm/dagger/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ engine:
# ref: registry.dagger.io/engine:main
pullPolicy: IfNotPresent

### Image pull secret to use for registry authentication.
imagePullSecrets: []
# imagePullSecrets:
# - name: image-pull-secret


### Set taints & tolerations for this workload
#
# tolerations:
Expand Down

0 comments on commit 92db43a

Please sign in to comment.