# helm_charts_rbac_service_account.yaml
{{- if .Values.rbac }}
apiVersion: v1
kind: ServiceAccount
metadata:
  name: {{ include "jenkins-operator.name" . }}
  labels:
    helm.sh/chart: {{ include "jenkins-operator.chart" . }}
    app.kubernetes.io/name: {{ include "jenkins-operator.name" . }}
    app.kubernetes.io/managed-by: {{ .Release.Service }}
    app.kubernetes.io/instance: {{ .Release.Name }}
    app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" | trunc 63 }}
{{- end }}