Skip to content

Commit 011b240

Browse files
committed
refactor(server-nestjs): migrate package managers to NestJS
Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr>
1 parent ca6a9a0 commit 011b240

19 files changed

Lines changed: 1986 additions & 0 deletions

apps/server-nestjs/src/cpin-module/infrastructure/health/health.controller.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { HealthCheck, HealthCheckService } from '@nestjs/terminus'
33
import { ArgoCDHealthService } from '../../../modules/argocd/argocd-health.service'
44
import { GitlabHealthService } from '../../../modules/gitlab/gitlab-health.service'
55
import { KeycloakHealthService } from '../../../modules/keycloak/keycloak-health.service'
6+
import { NexusHealthService } from '../../../modules/nexus/nexus-health.service'
7+
import { RegistryHealthService } from '../../../modules/registry/registry-health.service'
68
import { VaultHealthService } from '../../../modules/vault/vault-health.service'
79
import { DatabaseHealthService } from '../database/database-health.service'
810

@@ -14,6 +16,8 @@ export class HealthController {
1416
@Inject(KeycloakHealthService) private readonly keycloak: KeycloakHealthService,
1517
@Inject(GitlabHealthService) private readonly gitlab: GitlabHealthService,
1618
@Inject(VaultHealthService) private readonly vault: VaultHealthService,
19+
@Inject(NexusHealthService) private readonly nexus: NexusHealthService,
20+
@Inject(RegistryHealthService) private readonly registry: RegistryHealthService,
1721
@Inject(ArgoCDHealthService) private readonly argocd: ArgoCDHealthService,
1822
) {}
1923

@@ -25,6 +29,8 @@ export class HealthController {
2529
() => this.keycloak.check('keycloak'),
2630
() => this.gitlab.check('gitlab'),
2731
() => this.vault.check('vault'),
32+
() => this.nexus.check('nexus'),
33+
() => this.registry.check('registry'),
2834
() => this.argocd.check('argocd'),
2935
])
3036
}

apps/server-nestjs/src/cpin-module/infrastructure/health/health.module.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { TerminusModule } from '@nestjs/terminus'
33
import { ArgoCDModule } from '../../../modules/argocd/argocd.module'
44
import { GitlabModule } from '../../../modules/gitlab/gitlab.module'
55
import { KeycloakModule } from '../../../modules/keycloak/keycloak.module'
6+
import { NexusModule } from '../../../modules/nexus/nexus.module'
7+
import { RegistryModule } from '../../../modules/registry/registry.module'
68
import { VaultModule } from '../../../modules/vault/vault.module'
79
import { DatabaseHealthService } from '../database/database-health.service'
810
import { HealthController } from './health.controller'
@@ -14,6 +16,8 @@ import { HealthController } from './health.controller'
1416
KeycloakModule,
1517
GitlabModule,
1618
VaultModule,
19+
NexusModule,
20+
RegistryModule,
1721
ArgoCDModule,
1822
],
1923
controllers: [HealthController],

0 commit comments

Comments
 (0)