fix: target workload tasks in routing config

This commit is contained in:
2026-04-28 19:46:44 +00:00
parent 0b74b91124
commit 578e804306
3 changed files with 9 additions and 8 deletions
+3 -2
View File
@@ -455,8 +455,9 @@ export class ClusterManager {
if (workloadConfig) {
logger.log('ok', `found workload service ${service.Spec.Name}`);
const containersOfServicesOnNetwork =
await webGatewayNetwork.getContainersOnNetworkForService(service);
const containersOfServicesOnNetwork = (
await webGatewayNetwork.getContainersOnNetworkForService(service)
).filter((container) => container.Name !== service.Spec.Name);
// TODO: make this multi container ready
if (!containersOfServicesOnNetwork[0]) {
logger.log(