@@ -73,6 +73,7 @@ import (
7373 "github.com/devtron-labs/devtron/api/sse"
7474 "github.com/devtron-labs/devtron/api/team"
7575 "github.com/devtron-labs/devtron/api/terminal"
76+ "github.com/devtron-labs/devtron/api/userResource"
7677 util5 "github.com/devtron-labs/devtron/api/util"
7778 webhookHelm "github.com/devtron-labs/devtron/api/webhook/helm"
7879 "github.com/devtron-labs/devtron/cel"
@@ -102,14 +103,14 @@ import (
102103 appWorkflow2 "github.com/devtron-labs/devtron/internal/sql/repository/appWorkflow"
103104 "github.com/devtron-labs/devtron/internal/sql/repository/bulkUpdate"
104105 "github.com/devtron-labs/devtron/internal/sql/repository/chartConfig"
105- "github.com/devtron-labs/devtron/internal/sql/repository/deploymentConfig"
106106 dockerRegistryRepository "github.com/devtron-labs/devtron/internal/sql/repository/dockerRegistry"
107107 "github.com/devtron-labs/devtron/internal/sql/repository/helper"
108108 repository8 "github.com/devtron-labs/devtron/internal/sql/repository/imageTagging"
109109 "github.com/devtron-labs/devtron/internal/sql/repository/pipelineConfig"
110110 resourceGroup "github.com/devtron-labs/devtron/internal/sql/repository/resourceGroup"
111111 "github.com/devtron-labs/devtron/internal/util"
112112 "github.com/devtron-labs/devtron/pkg/app"
113+ read4 "github.com/devtron-labs/devtron/pkg/app/appDetails/read"
113114 "github.com/devtron-labs/devtron/pkg/app/dbMigration"
114115 "github.com/devtron-labs/devtron/pkg/app/status"
115116 "github.com/devtron-labs/devtron/pkg/appClone"
@@ -128,6 +129,7 @@ import (
128129 "github.com/devtron-labs/devtron/pkg/bulkAction/service"
129130 "github.com/devtron-labs/devtron/pkg/chart"
130131 "github.com/devtron-labs/devtron/pkg/chart/gitOpsConfig"
132+ read2 "github.com/devtron-labs/devtron/pkg/chart/read"
131133 chartRepoRepository "github.com/devtron-labs/devtron/pkg/chartRepo/repository"
132134 "github.com/devtron-labs/devtron/pkg/commonService"
133135 "github.com/devtron-labs/devtron/pkg/config"
@@ -169,6 +171,7 @@ import (
169171 workflow3 "github.com/devtron-labs/devtron/pkg/workflow"
170172 "github.com/devtron-labs/devtron/pkg/workflow/dag"
171173 util2 "github.com/devtron-labs/devtron/util"
174+ "github.com/devtron-labs/devtron/util/commonEnforcementFunctionsUtil"
172175 cron2 "github.com/devtron-labs/devtron/util/cron"
173176 "github.com/devtron-labs/devtron/util/rbac"
174177 "github.com/google/wire"
@@ -212,6 +215,7 @@ func InitializeApp() (*App, error) {
212215 workflow3 .WorkflowWireSet ,
213216 imageTagging .WireSet ,
214217 devtronResource .DevtronResourceWireSet ,
218+ userResource .UserResourceWireSet ,
215219 policyGovernance .PolicyGovernanceWireSet ,
216220 resourceScan .ScanningResultWireSet ,
217221
@@ -357,6 +361,8 @@ func InitializeApp() (*App, error) {
357361 wire .Bind (new (gitOpsConfig.DevtronAppGitOpConfigService ), new (* gitOpsConfig.DevtronAppGitOpConfigServiceImpl )),
358362 chart .NewChartServiceImpl ,
359363 wire .Bind (new (chart.ChartService ), new (* chart.ChartServiceImpl )),
364+ read2 .NewChartReadServiceImpl ,
365+ wire .Bind (new (read2.ChartReadService ), new (* read2.ChartReadServiceImpl )),
360366 service .NewBulkUpdateServiceImpl ,
361367 wire .Bind (new (service.BulkUpdateService ), new (* service.BulkUpdateServiceImpl )),
362368
@@ -375,6 +381,10 @@ func InitializeApp() (*App, error) {
375381 wire .Bind (new (appList.AppListingRouter ), new (* appList.AppListingRouterImpl )),
376382 appList2 .NewAppListingRestHandlerImpl ,
377383 wire .Bind (new (appList2.AppListingRestHandler ), new (* appList2.AppListingRestHandlerImpl )),
384+
385+ read4 .NewAppDetailsReadServiceImpl ,
386+ wire .Bind (new (read4.AppDetailsReadService ), new (* read4.AppDetailsReadServiceImpl )),
387+
378388 app .NewAppListingServiceImpl ,
379389 wire .Bind (new (app.AppListingService ), new (* app.AppListingServiceImpl )),
380390 repository .NewAppListingRepositoryImpl ,
@@ -495,6 +505,9 @@ func InitializeApp() (*App, error) {
495505 rbac .NewEnforcerUtilImpl ,
496506 wire .Bind (new (rbac.EnforcerUtil ), new (* rbac.EnforcerUtilImpl )),
497507
508+ commonEnforcementFunctionsUtil .NewCommonEnforcementUtilImpl ,
509+ wire .Bind (new (commonEnforcementFunctionsUtil.CommonEnforcementUtil ), new (* commonEnforcementFunctionsUtil.CommonEnforcementUtilImpl )),
510+
498511 chartConfig .NewPipelineConfigRepository ,
499512 wire .Bind (new (chartConfig.PipelineConfigRepository ), new (* chartConfig.PipelineConfigRepositoryImpl )),
500513
@@ -622,6 +635,7 @@ func InitializeApp() (*App, error) {
622635 repository9 .NewClusterInstalledAppsRepositoryImpl ,
623636 wire .Bind (new (repository9.ClusterInstalledAppsRepository ), new (* repository9.ClusterInstalledAppsRepositoryImpl )),
624637
638+ commonService .NewCommonBaseServiceImpl ,
625639 commonService .NewCommonServiceImpl ,
626640 wire .Bind (new (commonService.CommonService ), new (* commonService.CommonServiceImpl )),
627641
@@ -659,8 +673,8 @@ func InitializeApp() (*App, error) {
659673
660674 router .NewCommonRouterImpl ,
661675 wire .Bind (new (router.CommonRouter ), new (* router.CommonRouterImpl )),
662- restHandler .NewCommonRestHanlderImpl ,
663- wire .Bind (new (restHandler.CommonRestHanlder ), new (* restHandler.CommonRestHanlderImpl )),
676+ restHandler .NewCommonRestHandlerImpl ,
677+ wire .Bind (new (restHandler.CommonRestHandler ), new (* restHandler.CommonRestHandlerImpl )),
664678
665679 router .NewScopedVariableRouterImpl ,
666680 wire .Bind (new (router.ScopedVariableRouter ), new (* router.ScopedVariableRouterImpl )),
@@ -941,11 +955,7 @@ func InitializeApp() (*App, error) {
941955 cel .NewCELServiceImpl ,
942956 wire .Bind (new (cel.EvaluatorService ), new (* cel.EvaluatorServiceImpl )),
943957
944- deploymentConfig .NewRepositoryImpl ,
945- wire .Bind (new (deploymentConfig.Repository ), new (* deploymentConfig.RepositoryImpl )),
946-
947- common .NewDeploymentConfigServiceImpl ,
948- wire .Bind (new (common.DeploymentConfigService ), new (* common.DeploymentConfigServiceImpl )),
958+ common .WireSet ,
949959
950960 repoCredsK8sClient .NewRepositoryCredsK8sClientImpl ,
951961 wire .Bind (new (repoCredsK8sClient.RepositoryCredsK8sClient ), new (* repoCredsK8sClient.RepositoryCredsK8sClientImpl )),
0 commit comments