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

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Signed-off-by: Cody Belcher <cody.t.belcher@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and Cody Belcher committed 2020-04-16 11:23:37 -05:00
1 parent 6d753cc066
commit 4b2ea6da1c
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({