{{- if .Values.tinkController.deploy }} apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ .Values.tinkController.tinkLeaderElectionRoleName }} namespace: {{ .Values.namespace }} rules: - apiGroups: - "" resources: - configmaps verbs: - get - list - watch - create - update - patch - apiGroups: - coordination.k8s.io resources: - leases verbs: - get - list - watch - create - update - patch - delete - apiGroups: - "" resources: - events verbs: - create - patch {{- end }}