Skip to content

Commit

Permalink
Remove cluster role with name cluster-admin check
Browse files Browse the repository at this point in the history
  • Loading branch information
ranatrk committed Sep 7, 2023
1 parent 5766447 commit 6fe0e8f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/cluster/connector/service_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@ func ReconcileServiceAccount(ctx context.Context, client kubernetes.Interface, c
return nil, err
}

// verify cluster role exists
clusterRoleName := "cluster-admin"
_, err = client.RbacV1().ClusterRoles().Get(ctx, clusterRoleName, metav1.GetOptions{})
if err != nil {
return nil, err
}

err = createClusterRoleBinding(ctx, client, clusterRoleName, clusterConnectionOpts)
if err != nil {
return nil, err
Expand Down

0 comments on commit 6fe0e8f

Please sign in to comment.