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 .PHONY: e2e-test
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 }} {{ include "nfs.labels" . | indent 6 }}
app: csi-nfs-controller app: csi-nfs-controller
spec: spec:
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}
hostNetwork: true # controller also needs to mount nfs to create dir hostNetwork: true # controller also needs to mount nfs to create dir
dnsPolicy: ClusterFirstWithHostNet dnsPolicy: ClusterFirstWithHostNet
serviceAccountName: csi-nfs-controller-sa serviceAccountName: csi-nfs-controller-sa

View File

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

View File

@ -26,3 +26,9 @@ controller:
node: node:
logLevel: 5 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"