import { Module, forwardRef } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { ClustersService } from './clusters.service'; import { ClustersController } from './clusters.controller'; import { ClusterToolsService } from './cluster-tools.service'; import { ClusterToolsController } from './cluster-tools.controller'; import { Cluster } from './entities/cluster.entity'; import { ClusterPool } from './entities/cluster-pool.entity'; import { ClusterHealth } from './entities/cluster-health.entity'; import { ClusterAllocationLog } from './entities/cluster-allocation-log.entity'; import { KubernetesModule } from '../kubernetes/kubernetes.module'; @Module({ imports: [ TypeOrmModule.forFeature([Cluster, ClusterPool, ClusterHealth, ClusterAllocationLog]), forwardRef(() => KubernetesModule), ], controllers: [ClustersController, ClusterToolsController], providers: [ClustersService, ClusterToolsService], exports: [ClustersService, ClusterToolsService], }) export class ClustersModule {}