prombench/manifests/cluster-infra/1a_rolebinding.yaml (11 lines of code) (raw):
# Acc to GKE docs, we need to make user cluster-admin before making RBAC roles
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cluster-admin-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
#This is needed to grant access to create RBAC roles
- kind: User
name: "{{ .SERVICEACCOUNT_CLIENT_EMAIL }}"