rancher-partner-charts/charts/f5/nginx-ingress/1.3.2/templates/controller-serviceaccount.yaml

26 lines
873 B
YAML

{{- if .Values.rbac.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "nginx-ingress.serviceAccountName" . }}
{{- if .Values.controller.serviceAccount.annotations }}
annotations: {{- toYaml .Values.controller.serviceAccount.annotations | nindent 4 }}
{{- end }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "nginx-ingress.labels" . | nindent 4 }}
{{- if or .Values.controller.serviceAccount.imagePullSecretName .Values.controller.serviceAccount.imagePullSecretsNames }}
imagePullSecrets:
{{- end }}
{{- if .Values.controller.serviceAccount.imagePullSecretName }}
- name: {{ .Values.controller.serviceAccount.imagePullSecretName}}
{{- end }}
{{- if .Values.controller.serviceAccount.imagePullSecretsNames }}
{{- range .Values.controller.serviceAccount.imagePullSecretsNames }}
- name: {{ . }}
{{- end }}
{{- end }}
{{- end }}