Skip to content

Commit a74d3e6

Browse files
committed
fix: logs not working
1 parent 5884ffb commit a74d3e6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

api/src/controllers/application/streamApplicationLogs.controller.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ const streamApplicationLogs = asyncHandler(
2727
// Get all pods for the app using secure Kubernetes client
2828
const pods = await k8sClient.getPodsInNamespace(namespace);
2929
const appPods = pods.filter(
30-
(pod) => pod.metadata?.labels?.app === app.name
30+
(pod) =>
31+
pod.metadata?.labels?.app === app.name ||
32+
pod.metadata?.labels?.deployment === (app.deploymentName || app.name)
3133
);
3234

3335
const podNames = appPods

0 commit comments

Comments
 (0)