---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  labels:
    app.kubernetes.io/name: wanaku-operator
    app.kubernetes.io/version: 0.1.1-SNAPSHOT
  name: {{ .Release.Namespace }}-wanaku-capability-crd-validating-role-binding
roleRef:
  kind: ClusterRole
  apiGroup: rbac.authorization.k8s.io
  name: {{ .Release.Namespace }}-josdk-crd-validating-cluster-role
subjects:
  - kind: ServiceAccount
    name: wanaku-operator
    namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  labels:
    app.kubernetes.io/name: wanaku-operator
    app.kubernetes.io/version: 0.1.1-SNAPSHOT
  name: {{ .Release.Namespace }}-wanaku-router-crd-validating-role-binding
roleRef:
  kind: ClusterRole
  apiGroup: rbac.authorization.k8s.io
  name: {{ .Release.Namespace }}-josdk-crd-validating-cluster-role
subjects:
  - kind: ServiceAccount
    name: wanaku-operator
    namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  labels:
    app.kubernetes.io/name: wanaku-operator
    app.kubernetes.io/version: 0.1.1-SNAPSHOT
  name: {{ .Release.Namespace }}-wanaku-service-catalog-crd-validating-role-binding
roleRef:
  kind: ClusterRole
  apiGroup: rbac.authorization.k8s.io
  name: {{ .Release.Namespace }}-josdk-crd-validating-cluster-role
subjects:
  - kind: ServiceAccount
    name: wanaku-operator
    namespace: {{ .Release.Namespace }}
