Only create clusterrole for OpenFaaS Pro
@@ -100,7 +100,7 @@ subjects:
- kind: ServiceAccount
name: {{ .Release.Name }}-operator
namespace: {{ .Release.Namespace | quote }}
-{{- if .Values.clusterRole}}
+{{- if and .Values.openfaasPro .Values.clusterRole}}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
