github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/weblogic-operator/templates/_operator-clusterrolebinding-general.tpl (about) 1 # Copyright (c) 2018, 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 4 {{- define "operator.clusterRoleBindingGeneral" }} 5 --- 6 apiVersion: "rbac.authorization.k8s.io/v1" 7 {{- if (eq .domainNamespaceSelectionStrategy "Dedicated") }} 8 kind: "RoleBinding" 9 {{- else }} 10 kind: "ClusterRoleBinding" 11 {{- end }} 12 metadata: 13 labels: 14 weblogic.operatorName: {{ .Release.Namespace | quote }} 15 {{- if (eq .domainNamespaceSelectionStrategy "Dedicated") }} 16 name: "weblogic-operator-rolebinding-general" 17 namespace: {{ .Release.Namespace | quote }} 18 {{- else }} 19 name: {{ list .Release.Namespace "weblogic-operator-clusterrolebinding-general" | join "-" | quote }} 20 {{- end }} 21 roleRef: 22 apiGroup: "rbac.authorization.k8s.io" 23 {{- if (eq .domainNamespaceSelectionStrategy "Dedicated") }} 24 kind: "Role" 25 name: "weblogic-operator-role-general" 26 {{- else }} 27 kind: "ClusterRole" 28 name: {{ list .Release.Namespace "weblogic-operator-clusterrole-general" | join "-" | quote }} 29 {{- end }} 30 subjects: 31 - kind: "ServiceAccount" 32 apiGroup: "" 33 name: {{ .serviceAccount | quote }} 34 namespace: {{ .Release.Namespace | quote }} 35 {{- end }}