diff --git a/charts/lightrun-operator/templates/deployment.yaml b/charts/lightrun-operator/templates/deployment.yaml index 200f37f..f44f3d5 100644 --- a/charts/lightrun-operator/templates/deployment.yaml +++ b/charts/lightrun-operator/templates/deployment.yaml @@ -67,6 +67,10 @@ spec: seccompProfile: #require kube version 1.19+ type: RuntimeDefault serviceAccountName: {{ include "chart.fullname" . }}-controller-manager + {{- with .Values.controllerManager.manager.image.pullSecrets }} + imagePullSecrets: +{{ toYaml . | nindent 8 }} + {{- end }} terminationGracePeriodSeconds: 10 {{- if .Values.controllerManager.manager.tolerations }} tolerations: @@ -75,4 +79,4 @@ spec: {{- if .Values.controllerManager.manager.nodeSelector }} nodeSelector: {{ toYaml .Values.controllerManager.manager.nodeSelector | indent 8 }} - {{- end }} \ No newline at end of file + {{- end }} diff --git a/charts/lightrun-operator/values.yaml b/charts/lightrun-operator/values.yaml index bc852cf..7b3b197 100644 --- a/charts/lightrun-operator/values.yaml +++ b/charts/lightrun-operator/values.yaml @@ -10,6 +10,11 @@ controllerManager: # So the most safe approach is to use same version as the Chart. # When installing chart from the helm repo, every helm package version will have controller image set to chart version tag: latest + # -- The pull secrets to use for operator deployment. + pullSecrets: [] + ## If you want to set image pull secrets for operator deployment, delete the `[]` in the line above + ## and uncomment this example block + # - name: "dockerhub-credentials-secret-name" resources: limits: cpu: 500m