Skip to content

Commit

Permalink
fix: default to 'main' container in Sensor logs. Fixes argoproj#9459 (a…
Browse files Browse the repository at this point in the history
…rgoproj#9438)

Signed-off-by: jsvk <850037+jsvk@users.noreply.github.com>
Signed-off-by: juchao <juchao@coscene.io>
  • Loading branch information
jsvk authored and juchaosong committed Nov 3, 2022
1 parent 0a180b1 commit 61db1bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/app/shared/services/sensor-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export class SensorService {
return requests.loadEventSource(`api/v1/stream/sensors/${namespace}`).pipe(map(line => line && (JSON.parse(line).result as SensorWatchEvent)));
}

public sensorsLogs(namespace: string, name = '', triggerName = '', grep = '', tailLines = -1) {
const params = ['podLogOptions.follow=true'];
public sensorsLogs(namespace: string, name = '', triggerName = '', grep = '', tailLines = -1, container = 'main') {
const params = ['podLogOptions.follow=true', `podLogOptions.container=${container}`];
if (name) {
params.push('name=' + name);
}
Expand Down

0 comments on commit 61db1bd

Please sign in to comment.