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 committed 2022-05-05 09:40:42 -04:00
1 parent a0f22d642d
commit 24a9e8c771
2 files changed
+3 -3

No files matched your search

+2 -2
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);
}
+1 -1
View File
@@ -513,7 +513,7 @@ export class KubeObject<
return this.metadata.resourceVersion;
}
getDescriptor() {
getScopedName() {
const ns = this.getNs();
const res = ns ? `${ns}/` : "";