import { Module, forwardRef } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { KubernetesService } from './kubernetes.service'; import { HelmService } from './helm.service'; import { RegistryService } from './registry.service'; import { K8sClientService } from './k8s-client.service'; import { K8sLifecycleService } from './k8s-lifecycle.service'; import { ElasticsearchService } from './elasticsearch.service'; import { ElasticsearchController } from './elasticsearch.controller'; import { LogsController } from './logs.controller'; import { ClustersModule } from '../clusters/clusters.module'; import { Application } from '../applications/entities/application.entity'; import { Deployment } from '../deployments/entities/deployment.entity'; @Module({ imports: [forwardRef(() => ClustersModule), TypeOrmModule.forFeature([Application, Deployment])], controllers: [ElasticsearchController, LogsController], providers: [KubernetesService, HelmService, RegistryService, ElasticsearchService, K8sClientService, K8sLifecycleService], exports: [KubernetesService, HelmService, RegistryService, ElasticsearchService, K8sClientService, K8sLifecycleService], }) export class KubernetesModule {}