{{- if .Values.workflow.rbac.create -}} apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ .Release.Name }}-workflow {{- if .Values.workflow.namespace }} namespace: {{ .Values.workflow.namespace }} {{- end }} rules: - apiGroups: - "" resources: - pods verbs: - get - watch - patch - apiGroups: - "" resources: - pods/log verbs: - get - watch {{- end }}