diff --git a/pkg/cloud/services/eks/oidc.go b/pkg/cloud/services/eks/oidc.go index ab23395b1f..2585237f84 100644 --- a/pkg/cloud/services/eks/oidc.go +++ b/pkg/cloud/services/eks/oidc.go @@ -53,6 +53,9 @@ func (s *Service) reconcileOIDCProvider(cluster *eks.Cluster) error { } s.scope.ControlPlane.Status.OIDCProvider.ARN = oidcProvider anno := s.scope.ControlPlane.GetAnnotations() + if anno == nil { + anno = make(map[string]string) + } anno["aws.spectrocloud.com/oidcProviderArn"] = oidcProvider s.scope.ControlPlane.SetAnnotations(anno) if err := s.scope.PatchObject(); err != nil {