We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76312ed commit ae285b7Copy full SHA for ae285b7
src/lib/kuviewAtom.ts
@@ -34,7 +34,7 @@ const PENDING_CHANGES = new Map<string, _change_operation>();
34
35
function getObjectKey(object: KubernetesObject): string {
36
// it is suprising that sometimes the uid is not unique, so we need to check the apiVersion and kind as well
37
- return `${object.apiVersion}/${object.kind}:${object.metadata.uid}`;
+ return `${object.apiVersion}/${object.kind}:${object.metadata.namespace}/${object.metadata.name}:${object.metadata.uid}`;
38
}
39
40
export function handleEvent(event: KuviewEvent) {
@@ -91,6 +91,7 @@ export function useGVKSyncHook(gvk: string) {
91
});
92
93
if (updated) {
94
+ console.log("updated", gvk, operations);
95
setObjects(newObjects);
96
97
};
0 commit comments