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

fix forCluster

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-03-31 16:44:22 +03:00
parent 4e5048b326
commit 69d91a3109

View File

@ -62,7 +62,9 @@ export interface IKubeResourceList {
}
export interface IKubeApiCluster {
id: string;
metadata: {
uid: string;
}
}
export function forCluster<T extends KubeObject>(cluster: IKubeApiCluster, kubeClass: IKubeObjectConstructor<T>): KubeApi<T> {
@ -71,7 +73,7 @@ export function forCluster<T extends KubeObject>(cluster: IKubeApiCluster, kubeC
debug: isDevelopment,
}, {
headers: {
"X-Cluster-ID": cluster.id
"X-Cluster-ID": cluster.metadata.uid
}
});