{{- if .Values.rbacHelpers.enable }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
    labels:
        app.kubernetes.io/managed-by: {{ .Release.Service }}
        app.kubernetes.io/name: project-v4-with-plugins
    name: project-v4-with-plugins-wordpress-admin-role
rules:
    - apiGroups:
        - example.com.testproject.org
      resources:
        - wordpresses
      verbs:
        - '*'
    - apiGroups:
        - example.com.testproject.org
      resources:
        - wordpresses/status
      verbs:
        - get
{{- end }}
