Skip to content

Commit

Permalink
Merge pull request #755 from mtougeron/image-pull-secrets
Browse files Browse the repository at this point in the history
Sets the imagePullSecrets if the value is set in the chart
  • Loading branch information
k8s-ci-robot committed Feb 23, 2021
2 parents ae12a26 + 40ab0bd commit 69535ad
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/aws-ebs-csi-driver/Chart.yaml
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "0.9.0"
name: aws-ebs-csi-driver
description: A Helm chart for AWS EBS CSI Driver
version: 0.9.8
version: 0.9.9
kubeVersion: ">=1.17.0-0"
home: https://github.com/kubernetes-sigs/aws-ebs-csi-driver
sources:
Expand Down
6 changes: 6 additions & 0 deletions charts/aws-ebs-csi-driver/templates/controller.yaml
Expand Up @@ -174,6 +174,12 @@ spec:
{{- with .Values.resources }}
resources: {{ toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
volumes:
- name: socket-dir
emptyDir: {}
6 changes: 6 additions & 0 deletions charts/aws-ebs-csi-driver/templates/node.yaml
Expand Up @@ -134,6 +134,12 @@ spec:
resources: {{ toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
volumes:
- name: kubelet-dir
hostPath:
Expand Down
6 changes: 6 additions & 0 deletions charts/aws-ebs-csi-driver/templates/statefulset.yaml
Expand Up @@ -43,4 +43,10 @@ spec:
args:
- --v=5
- --leader-election=false
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 69535ad

Please sign in to comment.