support shell to windows pod (powershell) (#136)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2020-03-18 18:26:54 +02:00
1 parent 957c810e1e
commit 7499b981c5
3 files changed
+23 -3

No files matched your search

@@ -145,6 +145,15 @@ export class Node extends KubeObject {
return this.status.nodeInfo.kubeletVersion;
}
getOperatingSystem(): string {
const label = this.getLabels().find(label => label.startsWith("kubernetes.io/os="))
if (label) {
return label.split("=", 2)[1]
}
return "linux"
}
isUnschedulable() {
return this.spec.unschedulable
}
@@ -401,6 +401,10 @@ export class Pod extends WorkloadKubeObject {
);
return probe;
}
getNodeName() {
return this.spec?.nodeName
}
}
export const podsApi = new PodsApi({