Skip to content

Commit

Permalink
Merge pull request #96 from draychev/simplify-3
Browse files Browse the repository at this point in the history
Simplify the usage of ParseIRSAAnnotation
  • Loading branch information
tekenstam authored May 7, 2022
2 parents f72bd8e + 998e835 commit a7120cf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ func GetTrustPolicy(ctx context.Context, role *iammanagerv1alpha1.Iamrole) (stri
var statements []iammanagerv1alpha1.TrustPolicyStatement

// Is it IRSA use case
flag, saName := ParseIRSAAnnotation(ctx, role)

//Construct AssumeRoleWithWebIdentity
if flag {

// Construct AssumeRoleWithWebIdentity
if flag, saName := ParseIRSAAnnotation(ctx, role); flag {
hostPath := fmt.Sprintf("%s", strings.TrimPrefix(config.Props.OIDCIssuerUrl(), "https://"))
statement := iammanagerv1alpha1.TrustPolicyStatement{
Effect: "Allow",
Expand Down

0 comments on commit a7120cf

Please sign in to comment.