{{- if and .Values.fusionOperator.enabled (eq (include "parent.dataplaneMode" . ) "shared") }} {{- if ( and .Values.fusionOperator.serviceAccount.enabled ( not .Values.fusionOperator.serviceAccount.preexisting ) ) -}} apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: {{ template "fusionOperator.name" . }}-role-binding roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: {{ template "fusionOperator.name" . }}-role subjects: - kind: ServiceAccount name: {{ .Values.fusionOperator.serviceAccount.enabled | ternary .Values.fusionOperator.serviceAccount.name "default" }} namespace: {{ .Release.Namespace }} {{- end }} {{- end }}