fix forCluster

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2021-03-31 16:44:22 +03:00
1 parent 4e5048b326
commit 69d91a3109
1 file changed
+4 -2
+4 -2
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
}
});