# auto-generated from fb-cloud-platforms-environments
# Bind admin role for namespace to team group
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: formbuilder-platform-{{ .Values.environmentName }}-admins
  namespace: formbuilder-platform-{{ .Values.environmentName }}
subjects:
  - kind: Group
    name: "github:form-builder"
    apiGroup: rbac.authorization.k8s.io
  - kind: ServiceAccount
    name: formbuilder-service-token-cache-{{ .Values.environmentName }}
    namespace: formbuilder-platform-{{ .Values.environmentName }}
roleRef:
  kind: ClusterRole
  name: admin
  apiGroup: rbac.authorization.k8s.io

# Further roles defined in:
# - service-token-cache-service-account.yaml
# - submitter-workers-service-account.yaml
# - user-datastore-service-account.yaml
