Skip to content

Commit

Permalink
ASTRACTL-33890: astra-connector: unable to detect OCP flavour correctly.
Browse files Browse the repository at this point in the history
closes ASTRACTL-33890
* updates astraconnect role with permissions to get, list clusteroperators.config.openshift.io
  • Loading branch information
vivintw committed Jun 6, 2024
1 parent aeb0e99 commit 10cabab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/deployer/connector/astra_connect_natless.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ func (d *AstraConnectDeployer) GetServiceAccountObjects(m *v1.AstraConnector, ct

func (d *AstraConnectDeployer) GetClusterRoleObjects(m *v1.AstraConnector, ctx context.Context) ([]client.Object, controllerutil.MutateFn, error) {
rules := []rbacv1.PolicyRule{
{
APIGroups: []string{"config.openshift.io"},
Resources: []string{"clusteroperators"},
Verbs: []string{"get", "list"},
},
{
APIGroups: []string{"rbac.authorization.k8s.io"},
Resources: []string{"clusterroles"},
Expand Down

0 comments on commit 10cabab

Please sign in to comment.