diff --git a/src/common/k8s-api/kube-object.store.ts b/src/common/k8s-api/kube-object.store.ts index 2ebeafc175..ca4e1d9000 100644 --- a/src/common/k8s-api/kube-object.store.ts +++ b/src/common/k8s-api/kube-object.store.ts @@ -384,7 +384,7 @@ export abstract class KubeObjectStore< "json", ); - assert(rawItem, `Failed to patch ${item.getDescriptor()} of ${item.kind} ${item.apiVersion}`); + assert(rawItem, `Failed to patch ${item.getScopedName()} of ${item.kind} ${item.apiVersion}`); return this.postUpdate(rawItem); } @@ -398,7 +398,7 @@ export abstract class KubeObjectStore< data, ); - assert(rawItem, `Failed to update ${item.getDescriptor()} of ${item.kind} ${item.apiVersion}`); + assert(rawItem, `Failed to update ${item.getScopedName()} of ${item.kind} ${item.apiVersion}`); return this.postUpdate(rawItem); } diff --git a/src/common/k8s-api/kube-object.ts b/src/common/k8s-api/kube-object.ts index ce66fd6e84..3431c6fcd2 100644 --- a/src/common/k8s-api/kube-object.ts +++ b/src/common/k8s-api/kube-object.ts @@ -513,7 +513,7 @@ export class KubeObject< return this.metadata.resourceVersion; } - getDescriptor() { + getScopedName() { const ns = this.getNs(); const res = ns ? `${ns}/` : "";