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:
parent
a0f22d642d
commit
24a9e8c771
@ -384,7 +384,7 @@ export abstract class KubeObjectStore<
|
|||||||
"json",
|
"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);
|
return this.postUpdate(rawItem);
|
||||||
}
|
}
|
||||||
@ -398,7 +398,7 @@ export abstract class KubeObjectStore<
|
|||||||
data,
|
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);
|
return this.postUpdate(rawItem);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -513,7 +513,7 @@ export class KubeObject<
|
|||||||
return this.metadata.resourceVersion;
|
return this.metadata.resourceVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
getDescriptor() {
|
getScopedName() {
|
||||||
const ns = this.getNs();
|
const ns = this.getNs();
|
||||||
const res = ns ? `${ns}/` : "";
|
const res = ns ? `${ns}/` : "";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user