@@ -49,6 +49,7 @@ import (
49
49
"github.com/devtron-labs/devtron/api/restHandler"
50
50
"github.com/devtron-labs/devtron/api/restHandler/app/appInfo"
51
51
appList2 "github.com/devtron-labs/devtron/api/restHandler/app/appList"
52
+ configDiff2 "github.com/devtron-labs/devtron/api/restHandler/app/configDiff"
52
53
pipeline3 "github.com/devtron-labs/devtron/api/restHandler/app/pipeline"
53
54
pipeline2 "github.com/devtron-labs/devtron/api/restHandler/app/pipeline/configure"
54
55
"github.com/devtron-labs/devtron/api/restHandler/app/pipeline/history"
@@ -61,6 +62,7 @@ import (
61
62
app3 "github.com/devtron-labs/devtron/api/router/app"
62
63
appInfo2 "github.com/devtron-labs/devtron/api/router/app/appInfo"
63
64
"github.com/devtron-labs/devtron/api/router/app/appList"
65
+ configDiff3 "github.com/devtron-labs/devtron/api/router/app/configDiff"
64
66
pipeline5 "github.com/devtron-labs/devtron/api/router/app/pipeline"
65
67
pipeline4 "github.com/devtron-labs/devtron/api/router/app/pipeline/configure"
66
68
history2 "github.com/devtron-labs/devtron/api/router/app/pipeline/history"
@@ -102,7 +104,6 @@ import (
102
104
repository8 "github.com/devtron-labs/devtron/internal/sql/repository/imageTagging"
103
105
"github.com/devtron-labs/devtron/internal/sql/repository/pipelineConfig"
104
106
resourceGroup "github.com/devtron-labs/devtron/internal/sql/repository/resourceGroup"
105
- security2 "github.com/devtron-labs/devtron/internal/sql/repository/security"
106
107
"github.com/devtron-labs/devtron/internal/util"
107
108
"github.com/devtron-labs/devtron/pkg/app"
108
109
"github.com/devtron-labs/devtron/pkg/app/dbMigration"
@@ -113,10 +114,7 @@ import (
113
114
"github.com/devtron-labs/devtron/pkg/appStore/chartGroup"
114
115
repository4 "github.com/devtron-labs/devtron/pkg/appStore/chartGroup/repository"
115
116
repository9 "github.com/devtron-labs/devtron/pkg/appStore/installedApp/repository"
116
- "github.com/devtron-labs/devtron/pkg/appStore/installedApp/service/FullMode"
117
117
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"
120
118
"github.com/devtron-labs/devtron/pkg/appWorkflow"
121
119
"github.com/devtron-labs/devtron/pkg/argoRepositoryCreds"
122
120
"github.com/devtron-labs/devtron/pkg/asyncProvider"
@@ -156,10 +154,9 @@ import (
156
154
repository5 "github.com/devtron-labs/devtron/pkg/pipeline/repository"
157
155
"github.com/devtron-labs/devtron/pkg/pipeline/types"
158
156
"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 "
160
158
resourceGroup2 "github.com/devtron-labs/devtron/pkg/resourceGroup"
161
159
"github.com/devtron-labs/devtron/pkg/resourceQualifiers"
162
- "github.com/devtron-labs/devtron/pkg/security"
163
160
"github.com/devtron-labs/devtron/pkg/sql"
164
161
util3 "github.com/devtron-labs/devtron/pkg/util"
165
162
"github.com/devtron-labs/devtron/pkg/variables"
@@ -196,9 +193,9 @@ func InitializeApp() (*App, error) {
196
193
chartRepo .ChartRepositoryWireSet ,
197
194
appStoreDiscover .AppStoreDiscoverWireSet ,
198
195
chartProvider .AppStoreChartProviderWireSet ,
199
- appStoreValues .AppStoreValuesWireSet ,
196
+ appStoreValues .WireSet ,
200
197
util2 .GetEnvironmentVariables ,
201
- appStoreDeployment .AppStoreDeploymentWireSet ,
198
+ appStoreDeployment .FullModeWireSet ,
202
199
server .ServerWireSet ,
203
200
module .ModuleWireSet ,
204
201
apiToken .ApiTokenWireSet ,
@@ -212,6 +209,8 @@ func InitializeApp() (*App, error) {
212
209
workflow3 .WorkflowWireSet ,
213
210
imageTagging .WireSet ,
214
211
devtronResource .DevtronResourceWireSet ,
212
+ policyGovernance .PolicyGovernanceWireSet ,
213
+
215
214
// -------wireset end ----------
216
215
// -------
217
216
gitSensor .GetConfig ,
@@ -538,19 +537,6 @@ func InitializeApp() (*App, error) {
538
537
539
538
notifier .NewNotificationConfigBuilderImpl ,
540
539
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 )),
554
540
555
541
workflow .NewAppWorkflowRestHandlerImpl ,
556
542
wire .Bind (new (workflow.AppWorkflowRestHandler ), new (* workflow.AppWorkflowRestHandlerImpl )),
@@ -644,30 +630,10 @@ func InitializeApp() (*App, error) {
644
630
wire .Bind (new (router.ImageScanRouter ), new (* router.ImageScanRouterImpl )),
645
631
restHandler .NewImageScanRestHandlerImpl ,
646
632
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 )),
661
633
router .NewPolicyRouterImpl ,
662
634
wire .Bind (new (router.PolicyRouter ), new (* router.PolicyRouterImpl )),
663
635
restHandler .NewPolicyRestHandlerImpl ,
664
636
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 )),
671
637
672
638
argocdServer .NewArgoK8sClientImpl ,
673
639
wire .Bind (new (argocdServer.ArgoK8sClient ), new (* argocdServer.ArgoK8sClientImpl )),
@@ -702,10 +668,10 @@ func InitializeApp() (*App, error) {
702
668
scopedVariable .NewScopedVariableRestHandlerImpl ,
703
669
wire .Bind (new (scopedVariable.ScopedVariableRestHandler ), new (* scopedVariable.ScopedVariableRestHandlerImpl )),
704
670
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 )),
709
675
configDiff .NewDeploymentConfigurationServiceImpl ,
710
676
wire .Bind (new (configDiff.DeploymentConfigurationService ), new (* configDiff.DeploymentConfigurationServiceImpl )),
711
677
@@ -816,12 +782,7 @@ func InitializeApp() (*App, error) {
816
782
// history ends
817
783
818
784
// 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 ,
825
786
restHandler .NewGlobalPluginRestHandler ,
826
787
wire .Bind (new (restHandler.GlobalPluginRestHandler ), new (* restHandler.GlobalPluginRestHandlerImpl )),
827
788
@@ -975,7 +936,7 @@ func InitializeApp() (*App, error) {
975
936
certificate .NewServiceClientImpl ,
976
937
wire .Bind (new (certificate.Client ), new (* certificate.ServiceClientImpl )),
977
938
978
- appStoreRestHandler .AppStoreWireSet ,
939
+ appStoreRestHandler .FullModeWireSet ,
979
940
980
941
cel .NewCELServiceImpl ,
981
942
wire .Bind (new (cel.EvaluatorService ), new (* cel.EvaluatorServiceImpl )),
0 commit comments