diff --git a/src/common/k8s-api/kube-api.ts b/src/common/k8s-api/kube-api.ts index d1e2a2c7ca..d1b65e4af0 100644 --- a/src/common/k8s-api/kube-api.ts +++ b/src/common/k8s-api/kube-api.ts @@ -481,7 +481,7 @@ export class KubeApi< }); } - async list({ namespace, reqInit }: KubeApiListOptions = {}, query?: KubeApiQueryParams): Promise { + async list({ namespace = "", reqInit }: KubeApiListOptions = {}, query?: KubeApiQueryParams): Promise { await this.checkPreferredVersion(); const url = this.getUrl({ namespace });