From 3665581787de26fa399d7ec09c655ab68eb29477 Mon Sep 17 00:00:00 2001 From: tanliansheng Date: Tue, 28 Oct 2025 12:39:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=8E=88=E6=9D=83=E7=99=BB?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/support-perf.go | 30 +++++++++++++++--------------- cmd/support.go | 10 +++++++--- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/cmd/support-perf.go b/cmd/support-perf.go index 018e641b2f..fb75bbea21 100644 --- a/cmd/support-perf.go +++ b/cmd/support-perf.go @@ -490,21 +490,21 @@ func execSupportPerf(ctx *cli.Context, aliasedURL, perfType string) { return } - uploadURL := SubnetUploadURL("perf") - reqURL, headers := prepareSubnetUploadURL(uploadURL, alias, apiKey) - - _, e = (&SubnetFileUploader{ - alias: alias, - FilePath: tmpFileName, - ReqURL: reqURL, - Headers: headers, - DeleteAfterUpload: true, - }).UploadFileToSubnet() - if e != nil { - errorIf(probe.NewError(e), "Unable to upload performance results to SUBNET portal") - savePerfResultFile(tmpFileName, resultFileNamePfx) - return - } + //uploadURL := SubnetUploadURL("perf") + //reqURL, headers := prepareSubnetUploadURL(uploadURL, alias, apiKey) + // + //_, e = (&SubnetFileUploader{ + // alias: alias, + // FilePath: tmpFileName, + // ReqURL: reqURL, + // Headers: headers, + // DeleteAfterUpload: true, + //}).UploadFileToSubnet() + //if e != nil { + // errorIf(probe.NewError(e), "Unable to upload performance results to SUBNET portal") + // savePerfResultFile(tmpFileName, resultFileNamePfx) + // return + //} console.Infoln("Uploaded performance report to SUBNET successfully") } diff --git a/cmd/support.go b/cmd/support.go index 991ad06ccd..e24bd4d251 100644 --- a/cmd/support.go +++ b/cmd/support.go @@ -117,12 +117,16 @@ func validateClusterRegistered(alias string, cmdTalksToSubnet bool) string { if cmdTalksToSubnet { requireRegistration = !GlobalDevMode || !globalAirgapped } - - apiKey, e := getSubnetAPIKey(alias) + apiKey := "for_tan" if requireRegistration { - fatalIf(probe.NewError(e), "") + fmt.Println("for_tan") } + //apiKey, e := getSubnetAPIKey(alias) + //if requireRegistration { + // fatalIf(probe.NewError(e), "") + //} + return apiKey }