1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

rename KubeObject.getDescriptor in favour of name without fundemental JS meaning

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-05-05 09:40:42 -04:00
parent a0f22d642d
commit 24a9e8c771
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -513,7 +513,7 @@ export class KubeObject<
return this.metadata.resourceVersion;
}
getDescriptor() {
getScopedName() {
const ns = this.getNs();
const res = ns ? `${ns}/` : "";