Skip to content

Commit bc8e6f5

Browse files
committed
Fix EKSControlPlaneReconciliationFailed When OIDC Already Exists with non https
1 parent 1c81e66 commit bc8e6f5

File tree

1 file changed

+2
-1
lines changed
  • pkg/cloud/services/eks/iam

1 file changed

+2
-1
lines changed

pkg/cloud/services/eks/iam/iam.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"encoding/json"
2424
"net/http"
2525
"net/url"
26+
"strings"
2627

2728
"github.com/aws/aws-sdk-go/aws"
2829
"github.com/aws/aws-sdk-go/service/eks"
@@ -461,7 +462,7 @@ func (s *IAMService) FindAndVerifyOIDCProvider(cluster *eks.Cluster) (string, er
461462
return "", errors.Wrap(err, "error getting provider")
462463
}
463464
// URL should always contain `https`.
464-
if *provider.Url != issuerURL.String() {
465+
if *provider.Url != issuerURL.String() && *provider.Url != strings.Replace(issuerURL.String(), "https://", "", 1) {
465466
continue
466467
}
467468
if len(provider.ThumbprintList) != 1 || *provider.ThumbprintList[0] != thumbprint {

0 commit comments

Comments
 (0)