mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
support shell to windows pod (powershell) (#136)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
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({
|
||||
|
||||
Reference in new issue
Block a user