From 780db4332e76289c7f064b6f5702b02e0e00290a Mon Sep 17 00:00:00 2001 From: vinay-g Date: Mon, 19 Aug 2024 18:13:14 -0700 Subject: [PATCH] [MESH-5336] - Adding error cluster to logs to debug better Signed-off-by: vinay-g --- admiral/pkg/clusters/serviceentry.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admiral/pkg/clusters/serviceentry.go b/admiral/pkg/clusters/serviceentry.go index a1c50a04..b916e2bf 100644 --- a/admiral/pkg/clusters/serviceentry.go +++ b/admiral/pkg/clusters/serviceentry.go @@ -54,6 +54,7 @@ const ( gtpManagedByGithub = "github" gtpManagedByMeshAgent = "mesh-agent" gtpManagerMeshAgentFieldValue = "ewok-mesh-agent" + errorCluster = "error-cluster" ) func createServiceEntryForDeployment( @@ -1563,6 +1564,9 @@ func AddServiceEntriesWithDrWorker( } } } + if addSEorDRToAClusterError != nil { + addSEorDRToAClusterError = common.AppendError(addSEorDRToAClusterError, fmt.Errorf("%s=%s", errorCluster, cluster)) + } errors <- addSEorDRToAClusterError } }