diff --git a/pkg/iam/iam.go b/pkg/iam/iam.go index e147fa53..b360270e 100644 --- a/pkg/iam/iam.go +++ b/pkg/iam/iam.go @@ -114,42 +114,6 @@ func (s *IAMService) ReconcileRole() error { return nil } -func (s *IAMService) ReconcileKiamRole() error { - s.log.Info("reconciling KIAM IAM role") - - var controlPlaneRoleARN string - { - - i := &awsiam.GetRoleInput{ - RoleName: aws.String(s.mainRoleName), - } - - o, err := s.iamClient.GetRole(i) - if err != nil { - s.log.Error(err, "failed to fetch ControlPlane role") - return err - } - - controlPlaneRoleARN = *o.Role.Arn - } - - params := struct { - ControlPlaneRoleARN string - EC2ServiceDomain string - }{ - ControlPlaneRoleARN: controlPlaneRoleARN, - EC2ServiceDomain: ec2ServiceDomain(s.region), - } - - err := s.reconcileRole(roleName(KIAMRole, s.clusterName), KIAMRole, params) - if err != nil { - return err - } - - s.log.Info("finished reconciling KIAM IAM role") - return nil -} - func (s *IAMService) ReconcileRolesForIRSA(awsAccountID string, cloudFrontDomain string) error { s.log.Info("reconciling IAM roles for IRSA")