@@ -43,7 +43,6 @@ import (
4343 "github.com/devtron-labs/devtron/api/externalLink"
4444 fluxApplication "github.com/devtron-labs/devtron/api/fluxApplication"
4545 client "github.com/devtron-labs/devtron/api/helm-app"
46- "github.com/devtron-labs/devtron/api/infraConfig"
4746 "github.com/devtron-labs/devtron/api/k8s"
4847 "github.com/devtron-labs/devtron/api/module"
4948 "github.com/devtron-labs/devtron/api/resourceScan"
@@ -79,8 +78,10 @@ import (
7978 "github.com/devtron-labs/devtron/cel"
8079 "github.com/devtron-labs/devtron/client/argocdServer"
8180 "github.com/devtron-labs/devtron/client/argocdServer/application"
81+ "github.com/devtron-labs/devtron/client/argocdServer/bean"
8282 "github.com/devtron-labs/devtron/client/argocdServer/certificate"
8383 cluster2 "github.com/devtron-labs/devtron/client/argocdServer/cluster"
84+ acdConfig "github.com/devtron-labs/devtron/client/argocdServer/config"
8485 "github.com/devtron-labs/devtron/client/argocdServer/connection"
8586 "github.com/devtron-labs/devtron/client/argocdServer/repoCredsK8sClient"
8687 repocreds "github.com/devtron-labs/devtron/client/argocdServer/repocreds"
@@ -129,7 +130,8 @@ import (
129130 "github.com/devtron-labs/devtron/pkg/chart/gitOpsConfig"
130131 chartRepoRepository "github.com/devtron-labs/devtron/pkg/chartRepo/repository"
131132 "github.com/devtron-labs/devtron/pkg/commonService"
132- "github.com/devtron-labs/devtron/pkg/configDiff"
133+ "github.com/devtron-labs/devtron/pkg/config"
134+ "github.com/devtron-labs/devtron/pkg/config/configDiff"
133135 delete2 "github.com/devtron-labs/devtron/pkg/delete"
134136 deployment2 "github.com/devtron-labs/devtron/pkg/deployment"
135137 "github.com/devtron-labs/devtron/pkg/deployment/common"
@@ -143,17 +145,14 @@ import (
143145 "github.com/devtron-labs/devtron/pkg/generateManifest"
144146 "github.com/devtron-labs/devtron/pkg/gitops"
145147 "github.com/devtron-labs/devtron/pkg/imageDigestPolicy"
146- repository11 "github.com/devtron-labs/devtron/pkg/infraConfig/repository"
147- infraConfigService "github.com/devtron-labs/devtron/pkg/infraConfig/service"
148- "github.com/devtron-labs/devtron/pkg/infraConfig/units"
148+ "github.com/devtron-labs/devtron/pkg/infraConfig"
149149 "github.com/devtron-labs/devtron/pkg/kubernetesResourceAuditLogs"
150150 repository7 "github.com/devtron-labs/devtron/pkg/kubernetesResourceAuditLogs/repository"
151151 "github.com/devtron-labs/devtron/pkg/notifier"
152152 "github.com/devtron-labs/devtron/pkg/pipeline"
153153 "github.com/devtron-labs/devtron/pkg/pipeline/executors"
154154 history3 "github.com/devtron-labs/devtron/pkg/pipeline/history"
155155 repository3 "github.com/devtron-labs/devtron/pkg/pipeline/history/repository"
156- "github.com/devtron-labs/devtron/pkg/pipeline/infraProviders"
157156 repository5 "github.com/devtron-labs/devtron/pkg/pipeline/repository"
158157 "github.com/devtron-labs/devtron/pkg/pipeline/types"
159158 "github.com/devtron-labs/devtron/pkg/plugin"
@@ -229,7 +228,7 @@ func InitializeApp() (*App, error) {
229228 connection .SettingsManager ,
230229 // auth.GetConfigForDevtronApps,
231230
232- connection .GetConfig ,
231+ bean .GetConfig ,
233232 wire .Bind (new (session2.ServiceClient ), new (* middleware.LoginService )),
234233
235234 sse .NewSSE ,
@@ -278,20 +277,6 @@ func InitializeApp() (*App, error) {
278277 wire .Bind (new (dashboardEvent.DashboardTelemetryRouter ),
279278 new (* dashboardEvent.DashboardTelemetryRouterImpl )),
280279
281- repository11 .NewInfraProfileRepositoryImpl ,
282- wire .Bind (new (repository11.InfraConfigRepository ), new (* repository11.InfraConfigRepositoryImpl )),
283-
284- units .NewUnits ,
285- infraConfigService .NewInfraConfigServiceImpl ,
286- wire .Bind (new (infraConfigService.InfraConfigService ), new (* infraConfigService.InfraConfigServiceImpl )),
287- infraProviders .NewInfraProviderImpl ,
288- wire .Bind (new (infraProviders.InfraProvider ), new (* infraProviders.InfraProviderImpl )),
289- infraConfig .NewInfraConfigRestHandlerImpl ,
290- wire .Bind (new (infraConfig.InfraConfigRestHandler ), new (* infraConfig.InfraConfigRestHandlerImpl )),
291-
292- infraConfig .NewInfraProfileRouterImpl ,
293- wire .Bind (new (infraConfig.InfraConfigRouter ), new (* infraConfig.InfraConfigRouterImpl )),
294-
295280 router .NewMuxRouter ,
296281
297282 app2 .NewAppRepositoryImpl ,
@@ -526,6 +511,10 @@ func InitializeApp() (*App, error) {
526511 chartConfig .NewConfigMapRepositoryImpl ,
527512 wire .Bind (new (chartConfig.ConfigMapRepository ), new (* chartConfig.ConfigMapRepositoryImpl )),
528513
514+ config .WireSet ,
515+
516+ infraConfig .WireSet ,
517+
529518 notifier .NewSESNotificationServiceImpl ,
530519 wire .Bind (new (notifier.SESNotificationService ), new (* notifier.SESNotificationServiceImpl )),
531520
@@ -926,6 +915,7 @@ func InitializeApp() (*App, error) {
926915 wire .Bind (new (resourceQualifiers.QualifierMappingService ), new (* resourceQualifiers.QualifierMappingServiceImpl )),
927916
928917 argocdServer .NewArgoClientWrapperServiceImpl ,
918+ argocdServer .NewArgoClientWrapperServiceEAImpl ,
929919 wire .Bind (new (argocdServer.ArgoClientWrapperService ), new (* argocdServer.ArgoClientWrapperServiceImpl )),
930920
931921 pipeline .NewPluginInputVariableParserImpl ,
@@ -937,7 +927,7 @@ func InitializeApp() (*App, error) {
937927 wire .Bind (new (imageDigestPolicy.ImageDigestPolicyService ), new (* imageDigestPolicy.ImageDigestPolicyServiceImpl )),
938928
939929 certificate .NewServiceClientImpl ,
940- wire .Bind (new (certificate.Client ), new (* certificate.ServiceClientImpl )),
930+ wire .Bind (new (certificate.ServiceClient ), new (* certificate.ServiceClientImpl )),
941931
942932 appStoreRestHandler .FullModeWireSet ,
943933
@@ -950,14 +940,17 @@ func InitializeApp() (*App, error) {
950940 common .NewDeploymentConfigServiceImpl ,
951941 wire .Bind (new (common.DeploymentConfigService ), new (* common.DeploymentConfigServiceImpl )),
952942
953- repoCredsK8sClient .NewRepositorySecret ,
954- wire .Bind (new (repoCredsK8sClient.RepositoryCreds ), new (* repoCredsK8sClient.RepositorySecretImpl )),
943+ repoCredsK8sClient .NewRepositoryCredsK8sClientImpl ,
944+ wire .Bind (new (repoCredsK8sClient.RepositoryCredsK8sClient ), new (* repoCredsK8sClient.RepositoryCredsK8sClientImpl )),
955945
956946 repocreds .NewServiceClientImpl ,
957947 wire .Bind (new (repocreds.ServiceClient ), new (* repocreds.ServiceClientImpl )),
958948
959949 dbMigration .NewDbMigrationServiceImpl ,
960950 wire .Bind (new (dbMigration.DbMigration ), new (* dbMigration.DbMigrationServiceImpl )),
951+
952+ acdConfig .NewArgoCDConfigGetter ,
953+ wire .Bind (new (acdConfig.ArgoCDConfigGetter ), new (* acdConfig.ArgoCDConfigGetterImpl )),
961954 )
962955 return & App {}, nil
963956}
0 commit comments