From fba03aea6e8f952e971d5807f192a4ce8a261b40 Mon Sep 17 00:00:00 2001 From: Eric Paulsen Date: Mon, 24 Oct 2022 13:24:21 -0400 Subject: [PATCH] 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 * array Co-authored-by: Dean Sheather Co-authored-by: Dean Sheather --- helm/templates/coder.yaml | 4 ++++ helm/values.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/helm/templates/coder.yaml b/helm/templates/coder.yaml index 438ed2de75..3d910e8124 100644 --- a/helm/templates/coder.yaml +++ b/helm/templates/coder.yaml @@ -28,6 +28,10 @@ spec: spec: serviceAccountName: coder restartPolicy: Always + {{- with .Values.coder.image.pullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} terminationGracePeriodSeconds: 60 containers: - name: coder diff --git a/helm/values.yaml b/helm/values.yaml index 0e2a278948..b0129cf71b 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -17,6 +17,10 @@ coder: # coder.image.pullPolicy -- The pull policy to use for the image. See: # https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy pullPolicy: IfNotPresent + # coder.image.pullSecret -- The secret used for pulling the Coder image from + # a private registry. + pullSecrets: [] + # - name: "pull-secret" # coder.annotations -- The Deployment annotations. See: # https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/