Skip to content
Snippets Groups Projects
Commit b821f903 authored by Helge Waastad's avatar Helge Waastad Committed by Sheng Yang
Browse files

Add any imagepullsecrets to serviceaccount

fix the usage of template (and not include) in serviceaccount.yaml
parent 66e91612
No related branches found
No related tags found
No related merge requests found
......@@ -2,11 +2,14 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "local-path-provisioner.fullname" . }}
name: {{ template "local-path-provisioner.serviceAccountName" . }}
labels:
{{ include "local-path-provisioner.labels" . | indent 4 }}
{{- if .Values.defaultSettings.registrySecret }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- if .Values.defaultSettings.registrySecret }}
- name: {{ .Values.defaultSettings.registrySecret }}
{{- end }}
{{- end }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment