Restore the preview host and its SSL when a custom domain is removed.
Removing a custom domain left the Ingress with a stale custom-domain rule and no preview host, so the platform preview URL 404'd. updateIngress now resolves the app's stable preview number from its latest deployment and re-emits the preview host (with cert-manager TLS) whenever no verified custom domain is set, and removeCustomDomain re-applies the Ingress. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -8,9 +8,10 @@ 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])],
|
||||
imports: [forwardRef(() => ClustersModule), TypeOrmModule.forFeature([Application, Deployment])],
|
||||
controllers: [ElasticsearchController, LogsController],
|
||||
providers: [KubernetesService, HelmService, RegistryService, ElasticsearchService],
|
||||
exports: [KubernetesService, HelmService, RegistryService, ElasticsearchService],
|
||||
|
||||
Reference in New Issue
Block a user