Skip to content

Commit 2ab1905

Browse files
committed
manifests: Expand related objects in clusteroperator
Add system:openshift:operator:kube-controller-manager-operator ClusterRoleBinding to the list of related objects.
1 parent e1cdb25 commit 2ab1905

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

manifests/0000_25_kube-controller-manager-operator_07_clusteroperator.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ status:
3838
resource: nodes
3939
- group: "certificates.k8s.io"
4040
resource: "certificatesigningrequests"
41+
- group: "rbac.authorization.k8s.io"
42+
name: "system:openshift:operator:kube-controller-manager-operator"
43+
resource: "clusterrolebindings"

pkg/operator/starter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ func RunOperator(ctx context.Context, cc *controllercmd.ControllerContext) error
238238
// TODO move to a more appropriate operator. One that creates and manages these.
239239
{Resource: "nodes"},
240240
{Group: "config.openshift.io", Resource: "nodes", Name: "cluster"},
241+
{Group: "rbac.authorization.k8s.io", Resource: "clusterrolebindings", Name: "system:openshift:operator:kube-controller-manager-operator"},
241242
},
242243
configClient.ConfigV1(),
243244
configInformers.Config().V1().ClusterOperators(),

0 commit comments

Comments
 (0)