From 514795ee22b1bca98c6a1a03773cc8eee2808dbf Mon Sep 17 00:00:00 2001 From: Thushani Tharushika Jayasekera <62471034+Thushani-Jayasekera@users.noreply.github.com> Date: Fri, 13 Dec 2024 10:18:44 +0530 Subject: [PATCH] Add review change --- adapter/internal/synchronizer/apis_fetcher.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/adapter/internal/synchronizer/apis_fetcher.go b/adapter/internal/synchronizer/apis_fetcher.go index 0c6f56a06d..095eb9f6aa 100644 --- a/adapter/internal/synchronizer/apis_fetcher.go +++ b/adapter/internal/synchronizer/apis_fetcher.go @@ -95,8 +95,6 @@ func PushAPIProjects(payload []byte, environments []string, xdsOptions common.Xd return err } - choreoComponentInfo := deployment.ChoreoComponentInfo - vhostToEnvsMap := make(map[string][]*synchronizer.GatewayLabel) for index := range deployment.Environments { env := deployment.Environments[index] @@ -115,7 +113,7 @@ func PushAPIProjects(payload []byte, environments []string, xdsOptions common.Xd // Pass the byte slice for the XDS APIs to push it to the enforcer and router // TODO: (renuka) optimize applying API project, update maps one by one and apply xds once var deployedRevisionList []*notifier.DeployedAPIRevision - deployedRevisionList, err = apiServer.ApplyAPIProjectFromAPIM(apiFileData, vhostToEnvsMap, envProps, xdsOptions, choreoComponentInfo) + deployedRevisionList, err = apiServer.ApplyAPIProjectFromAPIM(apiFileData, vhostToEnvsMap, envProps, xdsOptions, deployment.ChoreoComponentInfo) if err != nil { logger.LoggerSync.Errorf("Error occurred while applying project %v", err) } else if deployedRevisionList != nil {