Skip to content

Commit

Permalink
fixed as per review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shriramsharma committed Aug 22, 2024
1 parent e8d4d65 commit e052c31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admiral/pkg/clusters/serviceentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const (
gtpManagedByMeshAgent = "mesh-agent"
gtpManagerMeshAgentFieldValue = "ewok-mesh-agent"
errorCluster = "error-cluster"
ingressVSGenerationErrorMessage = "skipped generating ingress virtual service due to error "
ingressVSGenerationErrorMessage = "skipped generating ingress virtual service on cluster %s due to error %w"
)

func createServiceEntryForDeployment(
Expand Down Expand Up @@ -296,7 +296,7 @@ func modifyServiceEntryForNewServiceOrPod(
if common.IsVSBasedRoutingEnabled() {
err := generateIngressVirtualServiceForDeployment(deployment, sourceIngressVirtualService)
if err != nil {
err = fmt.Errorf(ingressVSGenerationErrorMessage + " w%" + err.Error())
err = fmt.Errorf(ingressVSGenerationErrorMessage, clusterId, err)
ctxLogger.Errorf(common.CtxLogFormat, "generateIngressVirtualServiceForDeployment",
deployment.Name, deployment.Namespace, clusterId, err.Error())
modifySEerr = common.AppendError(modifySEerr, err)
Expand Down Expand Up @@ -356,7 +356,7 @@ func modifyServiceEntryForNewServiceOrPod(
if common.IsVSBasedRoutingEnabled() {
err := generateIngressVirtualServiceForRollout(rollout, sourceIngressVirtualService)
if err != nil {
err = fmt.Errorf(ingressVSGenerationErrorMessage + " w%" + err.Error())
err = fmt.Errorf(ingressVSGenerationErrorMessage, clusterId, err)
ctxLogger.Errorf(common.CtxLogFormat, "generateIngressVirtualServiceForRollout",
rollout.Name, rollout.Namespace, clusterId, err.Error())
modifySEerr = common.AppendError(modifySEerr, err)
Expand Down

0 comments on commit e052c31

Please sign in to comment.