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]>
(cherry picked from commit 6b16f24)
  • Loading branch information
aniro-s authored and agilgur5 committed Apr 19, 2024
1 parent 06e6a0d commit fe5c612
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 const EventSourceService = {
return requests.loadEventSource(`api/v1/stream/event-sources/${namespace}`).pipe(map(line => line && (JSON.parse(line).result as EventSourceWatchEvent)));
},

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 fe5c612

Please sign in to comment.