{{ $secrets := list }}
{{ range $name := keys .Values.imagePullSecrets -}}
{{ $item := dict "name" $name }}
{{ $secrets = append $secrets $item }}
{{ end }}

apiVersion: v1
kind: ServiceAccount
metadata:
  name: tigera-operator
  namespace: {{.Release.Namespace}}
imagePullSecrets: {{- $secrets | toYaml | nindent 2 }}
