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 (argoproj#12939)

Signed-off-by: Andrei Shevchenko <[email protected]>
  • Loading branch information
aniro-s authored Apr 18, 2024
1 parent f0a867b commit 6b16f24
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 6b16f24

Please sign in to comment.