We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 69d4e12 + f9bc289 commit fe2966aCopy full SHA for fe2966a
frontend/src/lib/k8s/api/v2/useKubeObjectList.ts
@@ -73,7 +73,11 @@ export function kubeObjectListQuery<K extends KubeObject>(
73
}
74
).then(it => it.json());
75
list.items = list.items.map(item => {
76
- const itm = new kubeObjectClass({ ...item, kind: list.kind.replace('List', '') });
+ const itm = new kubeObjectClass({
77
+ ...item,
78
+ kind: list.kind.replace('List', ''),
79
+ apiVersion: list.apiVersion,
80
+ });
81
itm.cluster = cluster;
82
return itm;
83
});
0 commit comments