Merge branch 'master' into metrics-query-setting

This commit is contained in:
Juho Heikka authored and GitHub committed 2023-05-25 16:46:31 +03:00
commit e9b6a38a5b
4 files changed
+348 -262

No files matched your search

@@ -57,6 +57,12 @@ export class PodApi extends KubeApi<Pod> {
async getLogs(params: ResourceDescriptor, query?: PodLogsQuery): Promise<string> {
const path = `${this.getUrl(params)}/log`;
return this.request.get(path, { query });
const logs = await this.request.get(path, { query });
if (typeof logs !== "string") {
return "";
}
return logs;
}
}