From 24a9e8c771d672adf30bee4f69766f593aa5c75a Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 5 May 2022 09:40:42 -0400 Subject: [PATCH] rename KubeObject.getDescriptor in favour of name without fundemental JS meaning Signed-off-by: Sebastian Malton --- src/common/k8s-api/kube-object.store.ts | 4 ++-- src/common/k8s-api/kube-object.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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}/` : "";