kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: poweruser
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: poweruser
subjects:
- kind: Group
  name: PowerUser
  apiGroup: rbac.authorization.k8s.io
- kind: Group
  name: Manual
  apiGroup: rbac.authorization.k8s.io
- kind: Group
  name: Emergency
  apiGroup: rbac.authorization.k8s.io

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: poweruser
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: poweruser
subjects:
- kind: Group
  name: PowerUser
  apiGroup: rbac.authorization.k8s.io
{{- if eq .Cluster.Environment "test" }}
- kind: Group
  name: CollaboratorPowerUser
  apiGroup: rbac.authorization.k8s.io
{{- end }}
- kind: Group
  name: Manual
  apiGroup: rbac.authorization.k8s.io
- kind: Group
  name: Emergency
  apiGroup: rbac.authorization.k8s.io

Test clusters: bind PowerUser role to CollaboratorPowerUser
Test clusters: bind PowerUser role to CollaboratorPowerUser

Signed-off-by: Alexey Ermakov <6610c7e1c26fb4c3222ac4f760cb43a9f3c01622@zalando.de>
