# helm_charts_admission-service-account.yaml
{{- if and .Values.rbac.create  .Values.deployments.admissionController -}}
---
apiVersion: v1
kind: ServiceAccount
metadata:
  name: {{ template "admission-controller.serviceAccountName" . }}
  labels:
    app.kubernetes.io/name: {{ include "admission-controller.name" . }}
    app.kubernetes.io/instance: {{ .Release.Name }}
    app.kubernetes.io/managed-by: {{ .Release.Service }}
    helm.sh/chart: {{ include "couchbase-operator.chart" . }}
{{- end }}