@@ -66,6 +66,8 @@ apiVersion: v1
6666kind: Namespace
6767metadata:
6868 name: ${NAMESPACE}
69+ labels:
70+ weblogic.operatorName: ${NAMESPACE}
6971---
7072#
7173# Service Account for WebLogic Operator
@@ -75,6 +77,8 @@ kind: ServiceAccount
7577metadata:
7678 namespace: ${NAMESPACE}
7779 name: ${ACCOUNT_NAME}
80+ labels:
81+ weblogic.operatorName: ${NAMESPACE}
7882---
7983EOF
8084
@@ -86,6 +90,8 @@ kind: ClusterRole
8690apiVersion: rbac.authorization.k8s.io/v1beta1
8791metadata:
8892 name: weblogic-operator-cluster-role
93+ labels:
94+ weblogic.operatorName: ${NAMESPACE}
8995rules:
9096- apiGroups: [""]
9197 resources: ["namespaces", "persistentvolumes"]
@@ -107,6 +113,8 @@ kind: ClusterRole
107113apiVersion: rbac.authorization.k8s.io/v1beta1
108114metadata:
109115 name: weblogic-operator-cluster-role-nonresource
116+ labels:
117+ weblogic.operatorName: ${NAMESPACE}
110118rules:
111119- nonResourceURLs: ["/version/*"]
112120 verbs: ["get"]
@@ -118,6 +126,8 @@ kind: ClusterRoleBinding
118126apiVersion: rbac.authorization.k8s.io/v1beta1
119127metadata:
120128 name: ${NAMESPACE} -operator-rolebinding
129+ labels:
130+ weblogic.operatorName: ${NAMESPACE}
121131subjects:
122132- kind: ServiceAccount
123133 name: ${ACCOUNT_NAME}
@@ -132,6 +142,8 @@ kind: ClusterRoleBinding
132142apiVersion: rbac.authorization.k8s.io/v1beta1
133143metadata:
134144 name: ${NAMESPACE} -operator-rolebinding-nonresource
145+ labels:
146+ weblogic.operatorName: ${NAMESPACE}
135147subjects:
136148- kind: ServiceAccount
137149 name: ${ACCOUNT_NAME}
@@ -146,6 +158,8 @@ kind: ClusterRoleBinding
146158apiVersion: rbac.authorization.k8s.io/v1beta1
147159metadata:
148160 name: ${NAMESPACE} -operator-rolebinding-discovery
161+ labels:
162+ weblogic.operatorName: ${NAMESPACE}
149163subjects:
150164- kind: ServiceAccount
151165 name: ${ACCOUNT_NAME}
@@ -160,6 +174,8 @@ kind: ClusterRoleBinding
160174apiVersion: rbac.authorization.k8s.io/v1beta1
161175metadata:
162176 name: ${NAMESPACE} -operator-rolebinding-auth-delegator
177+ labels:
178+ weblogic.operatorName: ${NAMESPACE}
163179subjects:
164180- kind: ServiceAccount
165181 name: ${ACCOUNT_NAME}
@@ -177,6 +193,8 @@ kind: ClusterRole
177193apiVersion: rbac.authorization.k8s.io/v1beta1
178194metadata:
179195 name: weblogic-operator-namespace-role
196+ labels:
197+ weblogic.operatorName: ${NAMESPACE}
180198rules:
181199- apiGroups: [""]
182200 resources: ["secrets", "persistentvolumeclaims"]
@@ -214,6 +232,8 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
214232metadata:
215233 name: weblogic-operator-rolebinding
216234 namespace: ${i}
235+ labels:
236+ weblogic.operatorName: ${NAMESPACE}
217237subjects:
218238- kind: ServiceAccount
219239 name: ${ACCOUNT_NAME}
0 commit comments