operator-service-account.yaml 584 B

12345678910111213141516171819202122
  1. {{- if and .Values.deploy.operator .Values.serviceAccount.create }}
  2. apiVersion: v1
  3. kind: ServiceAccount
  4. metadata:
  5. name: {{ .Release.Name }}
  6. namespace: {{ .Release.Namespace }}
  7. {{- with .Values.operator.serviceAccount.annotations }}
  8. annotations:
  9. {{- toYaml . | nindent 4 }}
  10. {{- end }}
  11. {{- if or .Values.serviceAccount.repoCredentials .Values.imagePullSecrets }}
  12. imagePullSecrets:
  13. {{- with .Values.serviceAccount.repoCredentials }}
  14. {{- range . }}
  15. - name: {{ . }}
  16. {{- end }}
  17. {{- end }}
  18. {{- with .Values.imagePullSecrets }}
  19. {{ . | toYaml }}
  20. {{- end }}
  21. {{- end }}
  22. {{- end }}