Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ status:
- group: ""
name: openshift-cloud-controller-manager-operator
resource: namespaces
- group: rbac.authorization.k8s.io
name: cloud-controller-manager
resource: clusterroles
1 change: 1 addition & 0 deletions pkg/controllers/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ func (r *ClusterOperatorStatusClient) relatedObjects() []configv1.ObjectReferenc
{Resource: "namespaces", Name: defaultManagementNamespace},
{Group: configv1.GroupName, Resource: "clusteroperators", Name: clusterOperatorName},
{Resource: "namespaces", Name: r.ManagedNamespace},
{Group: "rbac.authorization.k8s.io", Resource: "clusterroles", Name: clusterOperatorName},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is a ClusterRole all you need? I'd expect you'd also need a ClusterRoleBinding that attaches that role to a ServiceAccount? And maybe other things?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looked like a trivial issue. I skimmed the issue a missed that this requires consideration of what to include. I marked the PR as draft and will revisit this next week.

}
}

Expand Down