@@ -43,7 +43,6 @@ import (
43
43
"github.com/devtron-labs/devtron/api/externalLink"
44
44
fluxApplication "github.com/devtron-labs/devtron/api/fluxApplication"
45
45
client "github.com/devtron-labs/devtron/api/helm-app"
46
- "github.com/devtron-labs/devtron/api/infraConfig"
47
46
"github.com/devtron-labs/devtron/api/k8s"
48
47
"github.com/devtron-labs/devtron/api/module"
49
48
"github.com/devtron-labs/devtron/api/resourceScan"
@@ -79,8 +78,10 @@ import (
79
78
"github.com/devtron-labs/devtron/cel"
80
79
"github.com/devtron-labs/devtron/client/argocdServer"
81
80
"github.com/devtron-labs/devtron/client/argocdServer/application"
81
+ "github.com/devtron-labs/devtron/client/argocdServer/bean"
82
82
"github.com/devtron-labs/devtron/client/argocdServer/certificate"
83
83
cluster2 "github.com/devtron-labs/devtron/client/argocdServer/cluster"
84
+ acdConfig "github.com/devtron-labs/devtron/client/argocdServer/config"
84
85
"github.com/devtron-labs/devtron/client/argocdServer/connection"
85
86
"github.com/devtron-labs/devtron/client/argocdServer/repoCredsK8sClient"
86
87
repocreds "github.com/devtron-labs/devtron/client/argocdServer/repocreds"
@@ -129,7 +130,8 @@ import (
129
130
"github.com/devtron-labs/devtron/pkg/chart/gitOpsConfig"
130
131
chartRepoRepository "github.com/devtron-labs/devtron/pkg/chartRepo/repository"
131
132
"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"
133
135
delete2 "github.com/devtron-labs/devtron/pkg/delete"
134
136
deployment2 "github.com/devtron-labs/devtron/pkg/deployment"
135
137
"github.com/devtron-labs/devtron/pkg/deployment/common"
@@ -143,17 +145,14 @@ import (
143
145
"github.com/devtron-labs/devtron/pkg/generateManifest"
144
146
"github.com/devtron-labs/devtron/pkg/gitops"
145
147
"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"
149
149
"github.com/devtron-labs/devtron/pkg/kubernetesResourceAuditLogs"
150
150
repository7 "github.com/devtron-labs/devtron/pkg/kubernetesResourceAuditLogs/repository"
151
151
"github.com/devtron-labs/devtron/pkg/notifier"
152
152
"github.com/devtron-labs/devtron/pkg/pipeline"
153
153
"github.com/devtron-labs/devtron/pkg/pipeline/executors"
154
154
history3 "github.com/devtron-labs/devtron/pkg/pipeline/history"
155
155
repository3 "github.com/devtron-labs/devtron/pkg/pipeline/history/repository"
156
- "github.com/devtron-labs/devtron/pkg/pipeline/infraProviders"
157
156
repository5 "github.com/devtron-labs/devtron/pkg/pipeline/repository"
158
157
"github.com/devtron-labs/devtron/pkg/pipeline/types"
159
158
"github.com/devtron-labs/devtron/pkg/plugin"
@@ -229,7 +228,7 @@ func InitializeApp() (*App, error) {
229
228
connection .SettingsManager ,
230
229
// auth.GetConfigForDevtronApps,
231
230
232
- connection .GetConfig ,
231
+ bean .GetConfig ,
233
232
wire .Bind (new (session2.ServiceClient ), new (* middleware.LoginService )),
234
233
235
234
sse .NewSSE ,
@@ -278,20 +277,6 @@ func InitializeApp() (*App, error) {
278
277
wire .Bind (new (dashboardEvent.DashboardTelemetryRouter ),
279
278
new (* dashboardEvent.DashboardTelemetryRouterImpl )),
280
279
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
-
295
280
router .NewMuxRouter ,
296
281
297
282
app2 .NewAppRepositoryImpl ,
@@ -526,6 +511,10 @@ func InitializeApp() (*App, error) {
526
511
chartConfig .NewConfigMapRepositoryImpl ,
527
512
wire .Bind (new (chartConfig.ConfigMapRepository ), new (* chartConfig.ConfigMapRepositoryImpl )),
528
513
514
+ config .WireSet ,
515
+
516
+ infraConfig .WireSet ,
517
+
529
518
notifier .NewSESNotificationServiceImpl ,
530
519
wire .Bind (new (notifier.SESNotificationService ), new (* notifier.SESNotificationServiceImpl )),
531
520
@@ -926,6 +915,7 @@ func InitializeApp() (*App, error) {
926
915
wire .Bind (new (resourceQualifiers.QualifierMappingService ), new (* resourceQualifiers.QualifierMappingServiceImpl )),
927
916
928
917
argocdServer .NewArgoClientWrapperServiceImpl ,
918
+ argocdServer .NewArgoClientWrapperServiceEAImpl ,
929
919
wire .Bind (new (argocdServer.ArgoClientWrapperService ), new (* argocdServer.ArgoClientWrapperServiceImpl )),
930
920
931
921
pipeline .NewPluginInputVariableParserImpl ,
@@ -937,7 +927,7 @@ func InitializeApp() (*App, error) {
937
927
wire .Bind (new (imageDigestPolicy.ImageDigestPolicyService ), new (* imageDigestPolicy.ImageDigestPolicyServiceImpl )),
938
928
939
929
certificate .NewServiceClientImpl ,
940
- wire .Bind (new (certificate.Client ), new (* certificate.ServiceClientImpl )),
930
+ wire .Bind (new (certificate.ServiceClient ), new (* certificate.ServiceClientImpl )),
941
931
942
932
appStoreRestHandler .FullModeWireSet ,
943
933
@@ -950,14 +940,17 @@ func InitializeApp() (*App, error) {
950
940
common .NewDeploymentConfigServiceImpl ,
951
941
wire .Bind (new (common.DeploymentConfigService ), new (* common.DeploymentConfigServiceImpl )),
952
942
953
- repoCredsK8sClient .NewRepositorySecret ,
954
- wire .Bind (new (repoCredsK8sClient.RepositoryCreds ), new (* repoCredsK8sClient.RepositorySecretImpl )),
943
+ repoCredsK8sClient .NewRepositoryCredsK8sClientImpl ,
944
+ wire .Bind (new (repoCredsK8sClient.RepositoryCredsK8sClient ), new (* repoCredsK8sClient.RepositoryCredsK8sClientImpl )),
955
945
956
946
repocreds .NewServiceClientImpl ,
957
947
wire .Bind (new (repocreds.ServiceClient ), new (* repocreds.ServiceClientImpl )),
958
948
959
949
dbMigration .NewDbMigrationServiceImpl ,
960
950
wire .Bind (new (dbMigration.DbMigration ), new (* dbMigration.DbMigrationServiceImpl )),
951
+
952
+ acdConfig .NewArgoCDConfigGetter ,
953
+ wire .Bind (new (acdConfig.ArgoCDConfigGetter ), new (* acdConfig.ArgoCDConfigGetterImpl )),
961
954
)
962
955
return & App {}, nil
963
956
}
0 commit comments