Fix breaking change on KubeApi.list

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-10-04 17:55:32 -04:00
1 parent 4f51a5431c
commit 26ea3f4a80
1 file changed
+1 -1
+1 -1
View File
@@ -481,7 +481,7 @@ export class KubeApi<
});
}
async list({ namespace, reqInit }: KubeApiListOptions = {}, query?: KubeApiQueryParams): Promise<Object[] | null> {
async list({ namespace = "", reqInit }: KubeApiListOptions = {}, query?: KubeApiQueryParams): Promise<Object[] | null> {
await this.checkPreferredVersion();
const url = this.getUrl({ namespace });