Skip to content

Commit

Permalink
fix: default to 'main' container in Sensor logs API call. Fixes #9459
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvk committed Aug 29, 2022
1 parent e90d937 commit d1c05cb
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 d1c05cb

Please sign in to comment.