Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helmchart add imagePullSecrets #461

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local-volume-provisioner in your Kubernetes with `helm install` directly.
- [Install local-volume-provisioner with helm](#install-local-volume-provisioner-with-helm)
- [Table of Contents](#table-of-contents)
- [Install Helm](#install-helm)
- [Custom your deployment with values file](#custom-your-deployment-with-values-file)
- [Customize your deployment with values file](#customize-your-deployment-with-values-file)
- [Install local-volume-provisioner](#install-local-volume-provisioner)
- [Generate yaml files with `helm template` and install with `kubectl`](#generate-yaml-files-with-helm-template-and-install-with-kubectl)
- [Install using helm repo](#install-using-helm-repo)
Expand Down Expand Up @@ -146,6 +146,7 @@ provisioner chart and their default values.
| podLabels | Labels for each Pod in the DaemonSet. | map | `-` |
| image | Provisioner image. | str | `registry.k8s.io/sig-storage/local-volume-provisioner:v2.5.0` |
| imagePullPolicy | Provisioner DaemonSet image pull policy. | str | `-` |
| imagePullSecrets | Provisioner image pull secrets. | list | `-` |
| priorityClassName | Provisioner DaemonSet Pod Priority Class name. | str | `` |
| kubeConfigEnv | Specify the location of kubernetes config file. | str | `-` |
| nodeLabels | List of node labels to be copied to the PVs created by the provisioner. | list | `-` |
Expand Down
4 changes: 4 additions & 0 deletions helm/provisioner/templates/daemonset_linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ spec:
serviceAccountName: {{ template "provisioner.serviceAccountName" . }}
{{- if .Values.priorityClassName }}
priorityClassName: {{.Values.priorityClassName}}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
nodeSelector:
kubernetes.io/os: linux
Expand Down
4 changes: 4 additions & 0 deletions helm/provisioner/templates/daemonset_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
serviceAccountName: {{ template "provisioner.serviceAccountName" . }}
{{- if .Values.priorityClassName }}
priorityClassName: {{.Values.priorityClassName}}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
nodeSelector:
kubernetes.io/os: windows
Expand Down
3 changes: 3 additions & 0 deletions helm/provisioner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ image: registry.k8s.io/sig-storage/local-volume-provisioner:v2.6.0
# Defines Image download policy, see kubernetes documentation for available values.
# imagePullPolicy: Always

# Defines Image pull secrets for the provisioner image.
imagePullSecrets: []

# Defines a name of the Pod Priority Class to use with the Provisioner DaemonSet
# Note that if you want to make it critical, specify "system-cluster-critical"
# or "system-node-critical" and deploy in kube-system namespace.
Expand Down
Loading