github.com/verrazzano/verrazzano@v1.7.1/platform-operator/helm_config/charts/verrazzano-cluster-operator/templates/clusterrolebinding.yaml (about) 1 # Copyright (C) 2022, Oracle and/or its affiliates. 2 # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 apiVersion: rbac.authorization.k8s.io/v1 4 kind: ClusterRoleBinding 5 metadata: 6 name: {{ .Values.name }} 7 roleRef: 8 apiGroup: rbac.authorization.k8s.io 9 kind: ClusterRole 10 name: verrazzano-cluster-operator 11 subjects: 12 - kind: ServiceAccount 13 name: {{ .Values.name }} 14 namespace: {{ .Values.namespace }} 15 --- 16 # Needs verrazzano-managed-cluster permissions in order to grant that cluster role to managed clusters 17 apiVersion: rbac.authorization.k8s.io/v1 18 kind: ClusterRoleBinding 19 metadata: 20 name: {{ .Values.name }}-managed-cluster 21 roleRef: 22 apiGroup: rbac.authorization.k8s.io 23 kind: ClusterRole 24 name: verrazzano-managed-cluster 25 subjects: 26 - kind: ServiceAccount 27 name: {{ .Values.name }} 28 namespace: {{ .Values.namespace }}