12 lines
438 B
YAML
Raw Normal View History

2022-08-12 10:20:19 +02:00
{{- if and (or .Values.externalWorkloads.enabled .Values.clustermesh.useAPIServer) .Values.serviceAccounts.clustermeshApiserver.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ .Values.serviceAccounts.clustermeshApiserver.name | quote }}
namespace: {{ .Release.Namespace }}
{{- with .Values.serviceAccounts.clustermeshApiserver.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}