From af9c1307778d35d58cfa8496524ad123e6758ad7 Mon Sep 17 00:00:00 2001 From: Liangquan Li Date: Mon, 30 Dec 2024 16:30:51 +0800 Subject: [PATCH] Adjust the multi-arch check logic to skip the check when the payload is inaccessible. - In some cases, the environment executing the create command may not have access to the payload. Therefore, the multi-arch check logic has been adjusted to skip the check when the payload is inaccessible. --- cmd/cluster/core/create.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/cluster/core/create.go b/cmd/cluster/core/create.go index a60332d8f1..74fe99c55f 100644 --- a/cmd/cluster/core/create.go +++ b/cmd/cluster/core/create.go @@ -649,7 +649,11 @@ func (opts *RawCreateOptions) Validate(ctx context.Context) (*ValidatedCreateOpt return nil, fmt.Errorf("could not retrieve kube clientset: %w", err) } if err := validateMgmtClusterAndNodePoolCPUArchitectures(ctx, opts, kc, &hyperutil.RegistryClientImageMetadataProvider{}); err != nil { - return nil, err + if strings.Contains(err.Error(), "failed to retrieve manifest") { + opts.Log.Info("WARNING: Unable to access the payload, skipping the Architectures check.", "error", err.Error()) + } else { + return nil, err + } } }