From 4b4088d38de9b74bba1c8072525ec32171958ea3 Mon Sep 17 00:00:00 2001 From: Artem Chernyshev Date: Tue, 22 Oct 2024 20:10:36 +0300 Subject: [PATCH] fix: do not read Talos versions from the image registry ever It was reading from the image registry if the pre-release versions are enabled, but that doesn't work as factory won't generate the images for versions which are not in the list. Signed-off-by: Artem Chernyshev --- internal/backend/runtime/omni/controllers/omni/versions.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/backend/runtime/omni/controllers/omni/versions.go b/internal/backend/runtime/omni/controllers/omni/versions.go index e95f264a..93863b31 100644 --- a/internal/backend/runtime/omni/controllers/omni/versions.go +++ b/internal/backend/runtime/omni/controllers/omni/versions.go @@ -126,10 +126,6 @@ func (ctrl *VersionsController) fetchVersionsFromRegistry(ctx context.Context, s } func (ctrl *VersionsController) fetchTalosVersions(ctx context.Context, factoryURL string) ([]string, error) { - if config.Config.EnableTalosPreReleaseVersions { - return ctrl.fetchVersionsFromRegistry(ctx, config.Config.TalosRegistry) - } - client, err := client.New(factoryURL) if err != nil { return nil, err