From 0c2a3fddb2b99b7e38a47c289f9872dff81f5213 Mon Sep 17 00:00:00 2001 From: Mikhail Fedosin Date: Mon, 29 Apr 2024 23:27:17 +0200 Subject: [PATCH] Fix unsupportedProviderDowngradeMessage message Currently we format the message incorrectly, which causes output like: Downgrade is not supported for provider aws%!!(MISSING)(EXTRA string=cluster-api) --- internal/controller/preflight_checks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/preflight_checks.go b/internal/controller/preflight_checks.go index 260d96c96..2199e22e0 100644 --- a/internal/controller/preflight_checks.go +++ b/internal/controller/preflight_checks.go @@ -231,7 +231,7 @@ func checkProviderVersion(ctx context.Context, providerVersion string, provider operatorv1.PreflightCheckCondition, operatorv1.UnsupportedProviderDowngradeReason, clusterv1.ConditionSeverityError, - fmt.Sprintf(unsupportedProviderDowngradeMessage, provider.GetName(), configclient.ClusterAPIProviderName), + fmt.Sprintf(unsupportedProviderDowngradeMessage, provider.GetName()), )) return fmt.Errorf("downgrade is not supported for provider %q", provider.GetName())