From f18e1e0cf2f6c6af4f4d58d201991ec04172c7a1 Mon Sep 17 00:00:00 2001 From: Zhiying Lin Date: Tue, 24 Dec 2024 19:58:08 +0800 Subject: [PATCH] address copilot comment --- test/e2e/framework/workload_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/framework/workload_manager.go b/test/e2e/framework/workload_manager.go index 2323dd4a..9340a0ab 100644 --- a/test/e2e/framework/workload_manager.go +++ b/test/e2e/framework/workload_manager.go @@ -220,7 +220,7 @@ func (wm *WorkloadManager) AddServiceDNSLabel(ctx context.Context, cluster *Clus // BuildServiceDNSLabelName builds the DNS label name for the service. func (wm *WorkloadManager) BuildServiceDNSLabelName(cluster *Cluster) string { - return fmt.Sprintf("%s-%s-%s", wm.namespace, wm.service.Name, cluster.name) + return fmt.Sprintf("%s-%s-%s", wm.namespace, wm.service.Name, cluster.Name()) } // RemoveWorkload deletes workload(deployment and its service) from member clusters.