add image pull secrets in helm chart

This commit is contained in:
Manohar Reddy 2021-04-25 15:06:03 +00:00
parent 9811fe4c6f
commit d002b37180
5 changed files with 15 additions and 1 deletions

View File

@ -124,4 +124,4 @@ e2e-teardown:
.PHONY: e2e-test
e2e-test:
go test -v -timeout=0 ./test/e2e ${GINKGO_FLAGS}
go test -v -timeout=0 ./test/e2e ${GINKGO_FLAGS}

View File

@ -15,6 +15,10 @@ spec:
{{ include "nfs.labels" . | indent 6 }}
app: csi-nfs-controller
spec:
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}
hostNetwork: true # controller also needs to mount nfs to create dir
dnsPolicy: ClusterFirstWithHostNet
serviceAccountName: csi-nfs-controller-sa

View File

@ -15,6 +15,10 @@ spec:
{{ include "nfs.labels" . | indent 6 }}
app: csi-nfs-node
spec:
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}
hostNetwork: true # original nfs connection would be broken without hostNetwork setting
dnsPolicy: ClusterFirstWithHostNet
nodeSelector:

View File

@ -26,3 +26,9 @@ controller:
node:
logLevel: 5
## Reference to one or more secrets to be used when pulling images
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
##
imagePullSecrets: []
# - name: "image-pull-secret"