@@ -49,6 +49,7 @@ import (
4949 "github.com/devtron-labs/devtron/api/restHandler"
5050 "github.com/devtron-labs/devtron/api/restHandler/app/appInfo"
5151 appList2 "github.com/devtron-labs/devtron/api/restHandler/app/appList"
52+ configDiff2 "github.com/devtron-labs/devtron/api/restHandler/app/configDiff"
5253 pipeline3 "github.com/devtron-labs/devtron/api/restHandler/app/pipeline"
5354 pipeline2 "github.com/devtron-labs/devtron/api/restHandler/app/pipeline/configure"
5455 "github.com/devtron-labs/devtron/api/restHandler/app/pipeline/history"
@@ -61,6 +62,7 @@ import (
6162 app3 "github.com/devtron-labs/devtron/api/router/app"
6263 appInfo2 "github.com/devtron-labs/devtron/api/router/app/appInfo"
6364 "github.com/devtron-labs/devtron/api/router/app/appList"
65+ configDiff3 "github.com/devtron-labs/devtron/api/router/app/configDiff"
6466 pipeline5 "github.com/devtron-labs/devtron/api/router/app/pipeline"
6567 pipeline4 "github.com/devtron-labs/devtron/api/router/app/pipeline/configure"
6668 history2 "github.com/devtron-labs/devtron/api/router/app/pipeline/history"
@@ -102,7 +104,6 @@ import (
102104 repository8 "github.com/devtron-labs/devtron/internal/sql/repository/imageTagging"
103105 "github.com/devtron-labs/devtron/internal/sql/repository/pipelineConfig"
104106 resourceGroup "github.com/devtron-labs/devtron/internal/sql/repository/resourceGroup"
105- security2 "github.com/devtron-labs/devtron/internal/sql/repository/security"
106107 "github.com/devtron-labs/devtron/internal/util"
107108 "github.com/devtron-labs/devtron/pkg/app"
108109 "github.com/devtron-labs/devtron/pkg/app/dbMigration"
@@ -113,10 +114,7 @@ import (
113114 "github.com/devtron-labs/devtron/pkg/appStore/chartGroup"
114115 repository4 "github.com/devtron-labs/devtron/pkg/appStore/chartGroup/repository"
115116 repository9 "github.com/devtron-labs/devtron/pkg/appStore/installedApp/repository"
116- "github.com/devtron-labs/devtron/pkg/appStore/installedApp/service/FullMode"
117117 deployment3 "github.com/devtron-labs/devtron/pkg/appStore/installedApp/service/FullMode/deployment"
118- "github.com/devtron-labs/devtron/pkg/appStore/installedApp/service/FullMode/deploymentTypeChange"
119- "github.com/devtron-labs/devtron/pkg/appStore/installedApp/service/FullMode/resource"
120118 "github.com/devtron-labs/devtron/pkg/appWorkflow"
121119 "github.com/devtron-labs/devtron/pkg/argoRepositoryCreds"
122120 "github.com/devtron-labs/devtron/pkg/asyncProvider"
@@ -156,10 +154,9 @@ import (
156154 repository5 "github.com/devtron-labs/devtron/pkg/pipeline/repository"
157155 "github.com/devtron-labs/devtron/pkg/pipeline/types"
158156 "github.com/devtron-labs/devtron/pkg/plugin"
159- repository6 "github.com/devtron-labs/devtron/pkg/plugin/repository "
157+ "github.com/devtron-labs/devtron/pkg/policyGovernance "
160158 resourceGroup2 "github.com/devtron-labs/devtron/pkg/resourceGroup"
161159 "github.com/devtron-labs/devtron/pkg/resourceQualifiers"
162- "github.com/devtron-labs/devtron/pkg/security"
163160 "github.com/devtron-labs/devtron/pkg/sql"
164161 util3 "github.com/devtron-labs/devtron/pkg/util"
165162 "github.com/devtron-labs/devtron/pkg/variables"
@@ -196,9 +193,9 @@ func InitializeApp() (*App, error) {
196193 chartRepo .ChartRepositoryWireSet ,
197194 appStoreDiscover .AppStoreDiscoverWireSet ,
198195 chartProvider .AppStoreChartProviderWireSet ,
199- appStoreValues .AppStoreValuesWireSet ,
196+ appStoreValues .WireSet ,
200197 util2 .GetEnvironmentVariables ,
201- appStoreDeployment .AppStoreDeploymentWireSet ,
198+ appStoreDeployment .FullModeWireSet ,
202199 server .ServerWireSet ,
203200 module .ModuleWireSet ,
204201 apiToken .ApiTokenWireSet ,
@@ -212,6 +209,8 @@ func InitializeApp() (*App, error) {
212209 workflow3 .WorkflowWireSet ,
213210 imageTagging .WireSet ,
214211 devtronResource .DevtronResourceWireSet ,
212+ policyGovernance .PolicyGovernanceWireSet ,
213+
215214 // -------wireset end ----------
216215 // -------
217216 gitSensor .GetConfig ,
@@ -538,19 +537,6 @@ func InitializeApp() (*App, error) {
538537
539538 notifier .NewNotificationConfigBuilderImpl ,
540539 wire .Bind (new (notifier.NotificationConfigBuilder ), new (* notifier.NotificationConfigBuilderImpl )),
541- appStoreRestHandler .NewAppStoreStatusTimelineRestHandlerImpl ,
542- wire .Bind (new (appStoreRestHandler.AppStoreStatusTimelineRestHandler ), new (* appStoreRestHandler.AppStoreStatusTimelineRestHandlerImpl )),
543- appStoreRestHandler .NewInstalledAppRestHandlerImpl ,
544- wire .Bind (new (appStoreRestHandler.InstalledAppRestHandler ), new (* appStoreRestHandler.InstalledAppRestHandlerImpl )),
545- FullMode .NewInstalledAppDBExtendedServiceImpl ,
546- wire .Bind (new (FullMode.InstalledAppDBExtendedService ), new (* FullMode.InstalledAppDBExtendedServiceImpl )),
547- resource .NewInstalledAppResourceServiceImpl ,
548- wire .Bind (new (resource.InstalledAppResourceService ), new (* resource.InstalledAppResourceServiceImpl )),
549- deploymentTypeChange .NewInstalledAppDeploymentTypeChangeServiceImpl ,
550- wire .Bind (new (deploymentTypeChange.InstalledAppDeploymentTypeChangeService ), new (* deploymentTypeChange.InstalledAppDeploymentTypeChangeServiceImpl )),
551-
552- appStoreRestHandler .NewAppStoreRouterImpl ,
553- wire .Bind (new (appStoreRestHandler.AppStoreRouter ), new (* appStoreRestHandler.AppStoreRouterImpl )),
554540
555541 workflow .NewAppWorkflowRestHandlerImpl ,
556542 wire .Bind (new (workflow.AppWorkflowRestHandler ), new (* workflow.AppWorkflowRestHandlerImpl )),
@@ -644,30 +630,10 @@ func InitializeApp() (*App, error) {
644630 wire .Bind (new (router.ImageScanRouter ), new (* router.ImageScanRouterImpl )),
645631 restHandler .NewImageScanRestHandlerImpl ,
646632 wire .Bind (new (restHandler.ImageScanRestHandler ), new (* restHandler.ImageScanRestHandlerImpl )),
647- security .NewImageScanServiceImpl ,
648- wire .Bind (new (security.ImageScanService ), new (* security.ImageScanServiceImpl )),
649- security2 .NewImageScanHistoryRepositoryImpl ,
650- wire .Bind (new (security2.ImageScanHistoryRepository ), new (* security2.ImageScanHistoryRepositoryImpl )),
651- security2 .NewImageScanResultRepositoryImpl ,
652- wire .Bind (new (security2.ImageScanResultRepository ), new (* security2.ImageScanResultRepositoryImpl )),
653- security2 .NewImageScanObjectMetaRepositoryImpl ,
654- wire .Bind (new (security2.ImageScanObjectMetaRepository ), new (* security2.ImageScanObjectMetaRepositoryImpl )),
655- security2 .NewCveStoreRepositoryImpl ,
656- wire .Bind (new (security2.CveStoreRepository ), new (* security2.CveStoreRepositoryImpl )),
657- security2 .NewImageScanDeployInfoRepositoryImpl ,
658- wire .Bind (new (security2.ImageScanDeployInfoRepository ), new (* security2.ImageScanDeployInfoRepositoryImpl )),
659- security2 .NewScanToolMetadataRepositoryImpl ,
660- wire .Bind (new (security2.ScanToolMetadataRepository ), new (* security2.ScanToolMetadataRepositoryImpl )),
661633 router .NewPolicyRouterImpl ,
662634 wire .Bind (new (router.PolicyRouter ), new (* router.PolicyRouterImpl )),
663635 restHandler .NewPolicyRestHandlerImpl ,
664636 wire .Bind (new (restHandler.PolicyRestHandler ), new (* restHandler.PolicyRestHandlerImpl )),
665- security .NewPolicyServiceImpl ,
666- wire .Bind (new (security.PolicyService ), new (* security.PolicyServiceImpl )),
667- security2 .NewPolicyRepositoryImpl ,
668- wire .Bind (new (security2.CvePolicyRepository ), new (* security2.CvePolicyRepositoryImpl )),
669- security2 .NewScanToolExecutionHistoryMappingRepositoryImpl ,
670- wire .Bind (new (security2.ScanToolExecutionHistoryMappingRepository ), new (* security2.ScanToolExecutionHistoryMappingRepositoryImpl )),
671637
672638 argocdServer .NewArgoK8sClientImpl ,
673639 wire .Bind (new (argocdServer.ArgoK8sClient ), new (* argocdServer.ArgoK8sClientImpl )),
@@ -702,10 +668,10 @@ func InitializeApp() (*App, error) {
702668 scopedVariable .NewScopedVariableRestHandlerImpl ,
703669 wire .Bind (new (scopedVariable.ScopedVariableRestHandler ), new (* scopedVariable.ScopedVariableRestHandlerImpl )),
704670
705- router .NewDeploymentConfigurationRouter ,
706- wire .Bind (new (router .DeploymentConfigurationRouter ), new (* router .DeploymentConfigurationRouterImpl )),
707- restHandler .NewDeploymentConfigurationRestHandlerImpl ,
708- wire .Bind (new (restHandler .DeploymentConfigurationRestHandler ), new (* restHandler .DeploymentConfigurationRestHandlerImpl )),
671+ configDiff3 .NewDeploymentConfigurationRouter ,
672+ wire .Bind (new (configDiff3 .DeploymentConfigurationRouter ), new (* configDiff3 .DeploymentConfigurationRouterImpl )),
673+ configDiff2 .NewDeploymentConfigurationRestHandlerImpl ,
674+ wire .Bind (new (configDiff2 .DeploymentConfigurationRestHandler ), new (* configDiff2 .DeploymentConfigurationRestHandlerImpl )),
709675 configDiff .NewDeploymentConfigurationServiceImpl ,
710676 wire .Bind (new (configDiff.DeploymentConfigurationService ), new (* configDiff.DeploymentConfigurationServiceImpl )),
711677
@@ -816,12 +782,7 @@ func InitializeApp() (*App, error) {
816782 // history ends
817783
818784 // plugin starts
819- repository6 .NewGlobalPluginRepository ,
820- wire .Bind (new (repository6.GlobalPluginRepository ), new (* repository6.GlobalPluginRepositoryImpl )),
821-
822- plugin .NewGlobalPluginService ,
823- wire .Bind (new (plugin.GlobalPluginService ), new (* plugin.GlobalPluginServiceImpl )),
824-
785+ plugin .WireSet ,
825786 restHandler .NewGlobalPluginRestHandler ,
826787 wire .Bind (new (restHandler.GlobalPluginRestHandler ), new (* restHandler.GlobalPluginRestHandlerImpl )),
827788
@@ -975,7 +936,7 @@ func InitializeApp() (*App, error) {
975936 certificate .NewServiceClientImpl ,
976937 wire .Bind (new (certificate.Client ), new (* certificate.ServiceClientImpl )),
977938
978- appStoreRestHandler .AppStoreWireSet ,
939+ appStoreRestHandler .FullModeWireSet ,
979940
980941 cel .NewCELServiceImpl ,
981942 wire .Bind (new (cel.EvaluatorService ), new (* cel.EvaluatorServiceImpl )),
0 commit comments