Skip to content

Commit

Permalink
Merge pull request #328 from istio-ecosystem/MESH-5336
Browse files Browse the repository at this point in the history
[MESH-5336] - Adding error cluster to logs to debug better
  • Loading branch information
vinay-g authored Aug 20, 2024
2 parents 3e19061 + 780db43 commit 84e9f9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions admiral/pkg/clusters/serviceentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const (
gtpManagedByGithub = "github"
gtpManagedByMeshAgent = "mesh-agent"
gtpManagerMeshAgentFieldValue = "ewok-mesh-agent"
errorCluster = "error-cluster"
)

func createServiceEntryForDeployment(
Expand Down Expand Up @@ -1563,6 +1564,9 @@ func AddServiceEntriesWithDrWorker(
}
}
}
if addSEorDRToAClusterError != nil {
addSEorDRToAClusterError = common.AppendError(addSEorDRToAClusterError, fmt.Errorf("%s=%s", errorCluster, cluster))
}
errors <- addSEorDRToAClusterError
}
}
Expand Down

0 comments on commit 84e9f9d

Please sign in to comment.