Skip to content

Commit d367148

Browse files
check that trustpolicy configmap exists for early exit (#989) (#991)
Co-authored-by: stefanSpectro <[email protected]>
1 parent 125ac27 commit d367148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cloud/services/eks/oidc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const (
5252
)
5353

5454
func (s *Service) reconcileOIDCProvider(cluster *eks.Cluster) error {
55-
if !s.scope.ControlPlane.Spec.AssociateOIDCProvider || s.scope.ControlPlane.Status.OIDCProvider.ARN != "" {
55+
if !s.scope.ControlPlane.Spec.AssociateOIDCProvider || (s.scope.ControlPlane.Status.OIDCProvider.ARN != "" && s.isTrustPolicyConfigMapPresent()) {
5656
return nil
5757
}
5858

0 commit comments

Comments
 (0)