Skip to content

Commit fba03ae

Browse files
helm: add imagePullSecret for air-gapped cust's (#4700)
* helm: add imagePullSecret for air-gapped cust's * helm: pullSecrets array * fix: tag * indentation Co-authored-by: Dean Sheather <dean@deansheather.com> * array Co-authored-by: Dean Sheather <dean@deansheather.com> Co-authored-by: Dean Sheather <dean@deansheather.com>
1 parent 0783ca3 commit fba03ae

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

helm/templates/coder.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ spec:
2828
spec:
2929
serviceAccountName: coder
3030
restartPolicy: Always
31+
{{- with .Values.coder.image.pullSecrets }}
32+
imagePullSecrets:
33+
{{- toYaml . | nindent 8 }}
34+
{{- end }}
3135
terminationGracePeriodSeconds: 60
3236
containers:
3337
- name: coder

helm/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ coder:
1717
# coder.image.pullPolicy -- The pull policy to use for the image. See:
1818
# https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy
1919
pullPolicy: IfNotPresent
20+
# coder.image.pullSecret -- The secret used for pulling the Coder image from
21+
# a private registry.
22+
pullSecrets: []
23+
# - name: "pull-secret"
2024

2125
# coder.annotations -- The Deployment annotations. See:
2226
# https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/

0 commit comments

Comments
 (0)