Skip to content

Commit d066e8b

Browse files
committed
fix: remove set nodes role
1 parent 6827ce3 commit d066e8b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pkg/cloud/services/iamauth/reconcile.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import (
3030
infrav1 "sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta2"
3131
ekscontrolplanev1 "sigs.k8s.io/cluster-api-provider-aws/v2/controlplane/eks/api/v1beta2"
3232
expinfrav1 "sigs.k8s.io/cluster-api-provider-aws/v2/exp/api/v1beta2"
33-
iamv1 "sigs.k8s.io/cluster-api-provider-aws/v2/iam/api/v1beta1"
3433
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
3534
expclusterv1 "sigs.k8s.io/cluster-api/exp/api/v1beta1"
3635
)
@@ -105,11 +104,7 @@ func (s *Service) getARNForRole(role string) (string, error) {
105104
}
106105

107106
func (s *Service) getRolesForWorkers(ctx context.Context) (map[string]struct{}, error) {
108-
// previously this was the default role always added to the IAM authenticator config
109-
// we'll keep this to not break existing behavior for users
110-
allRoles := map[string]struct{}{
111-
fmt.Sprintf("nodes%s", iamv1.DefaultNameSuffix): {},
112-
}
107+
allRoles := map[string]struct{}{}
113108
if err := s.getRolesForMachineDeployments(ctx, allRoles); err != nil {
114109
return nil, fmt.Errorf("failed to get roles from machine deployments %w", err)
115110
}

0 commit comments

Comments
 (0)