Skip to content

Commit 5008c15

Browse files
committed
helmchart add imagepullsecrets
Signed-off-by: Lize Cai <[email protected]>
1 parent 12ed490 commit 5008c15

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

helm/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ local-volume-provisioner in your Kubernetes with `helm install` directly.
99
- [Install local-volume-provisioner with helm](#install-local-volume-provisioner-with-helm)
1010
- [Table of Contents](#table-of-contents)
1111
- [Install Helm](#install-helm)
12-
- [Custom your deployment with values file](#custom-your-deployment-with-values-file)
12+
- [Customize your deployment with values file](#customize-your-deployment-with-values-file)
1313
- [Install local-volume-provisioner](#install-local-volume-provisioner)
1414
- [Generate yaml files with `helm template` and install with `kubectl`](#generate-yaml-files-with-helm-template-and-install-with-kubectl)
1515
- [Install using helm repo](#install-using-helm-repo)
@@ -146,6 +146,7 @@ provisioner chart and their default values.
146146
| podLabels | Labels for each Pod in the DaemonSet. | map | `-` |
147147
| image | Provisioner image. | str | `registry.k8s.io/sig-storage/local-volume-provisioner:v2.5.0` |
148148
| imagePullPolicy | Provisioner DaemonSet image pull policy. | str | `-` |
149+
| imagePullSecrets | Provisioner image pull secrets. | list | `-` |
149150
| priorityClassName | Provisioner DaemonSet Pod Priority Class name. | str | `` |
150151
| kubeConfigEnv | Specify the location of kubernetes config file. | str | `-` |
151152
| nodeLabels | List of node labels to be copied to the PVs created by the provisioner. | list | `-` |

helm/provisioner/templates/daemonset_linux.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ spec:
3131
serviceAccountName: {{ template "provisioner.serviceAccountName" . }}
3232
{{- if .Values.priorityClassName }}
3333
priorityClassName: {{.Values.priorityClassName}}
34+
{{- end }}
35+
{{- if .Values.imagePullSecrets }}
36+
imagePullSecrets:
37+
{{ toYaml .Values.imagePullSecrets | nindent 8 }}
3438
{{- end }}
3539
nodeSelector:
3640
kubernetes.io/os: linux

helm/provisioner/templates/daemonset_windows.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ spec:
3232
serviceAccountName: {{ template "provisioner.serviceAccountName" . }}
3333
{{- if .Values.priorityClassName }}
3434
priorityClassName: {{.Values.priorityClassName}}
35+
{{- end }}
36+
{{- if .Values.imagePullSecrets }}
37+
imagePullSecrets:
38+
{{ toYaml .Values.imagePullSecrets | nindent 8 }}
3539
{{- end }}
3640
nodeSelector:
3741
kubernetes.io/os: windows

helm/provisioner/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ image: registry.k8s.io/sig-storage/local-volume-provisioner:v2.6.0
100100
# Defines Image download policy, see kubernetes documentation for available values.
101101
# imagePullPolicy: Always
102102

103+
# Defines Image pull secrets for the provisioner image.
104+
imagePullSecrets: []
105+
103106
# Defines a name of the Pod Priority Class to use with the Provisioner DaemonSet
104107
# Note that if you want to make it critical, specify "system-cluster-critical"
105108
# or "system-node-critical" and deploy in kube-system namespace.

0 commit comments

Comments
 (0)