Skip to content

Commit

Permalink
remove kiam leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
Berk Dehrioglu committed Sep 15, 2023
1 parent 67d5cfe commit e2a887e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions pkg/iam/iam.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
Empty file added pkg/iam/iam_test.go
Empty file.

0 comments on commit e2a887e

Please sign in to comment.