Skip to content

Commit

Permalink
fix(ui): default to main container name in event source logs API ca…
Browse files Browse the repository at this point in the history
…ll (#12939)

Signed-off-by: Andrei Shevchenko <[email protected]>
  • Loading branch information
aniro-s authored and isubasinghe committed May 7, 2024
1 parent 0f3a00d commit 2df039b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/app/shared/services/event-source-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export class EventSourceService {
return requests.loadEventSource(`api/v1/stream/event-sources/${namespace}`).pipe(map(line => line && (JSON.parse(line).result as EventSourceWatchEvent)));
}

public eventSourcesLogs(namespace: string, name = '', eventSourceType = '', eventName = '', grep = '', tailLines = -1) {
const params = ['podLogOptions.follow=true'];
eventSourcesLogs(namespace: string, name = '', eventSourceType = '', eventName = '', 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 2df039b

Please sign in to comment.