Skip to content

Commit 7e9f99a

Browse files
Merge pull request #57 from lightrun-platform/DEVOPS-2912-support-for-dockerhub-secret
DEVOPS-2912 Allow to set imagePullSecrets for operator deployment
2 parents d9aa804 + 9c0af71 commit 7e9f99a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

charts/lightrun-operator/templates/deployment.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ spec:
6767
seccompProfile: #require kube version 1.19+
6868
type: RuntimeDefault
6969
serviceAccountName: {{ include "chart.fullname" . }}-controller-manager
70+
{{- with .Values.controllerManager.manager.image.pullSecrets }}
71+
imagePullSecrets:
72+
{{ toYaml . | nindent 8 }}
73+
{{- end }}
7074
terminationGracePeriodSeconds: 10
7175
{{- if .Values.controllerManager.manager.tolerations }}
7276
tolerations:
@@ -75,4 +79,4 @@ spec:
7579
{{- if .Values.controllerManager.manager.nodeSelector }}
7680
nodeSelector:
7781
{{ toYaml .Values.controllerManager.manager.nodeSelector | indent 8 }}
78-
{{- end }}
82+
{{- end }}

charts/lightrun-operator/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ controllerManager:
1010
# So the most safe approach is to use same version as the Chart.
1111
# When installing chart from the helm repo, every helm package version will have controller image set to chart version
1212
tag: latest
13+
# -- The pull secrets to use for operator deployment.
14+
pullSecrets: []
15+
## If you want to set image pull secrets for operator deployment, delete the `[]` in the line above
16+
## and uncomment this example block
17+
# - name: "dockerhub-credentials-secret-name"
1318
resources:
1419
limits:
1520
cpu: 500m

0 commit comments

Comments
 (0)