mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Also check beta.kubernetes/os label
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
deaae10bc6
commit
7f6464fe2a
@ -213,6 +213,7 @@ export class Node extends KubeObject {
|
|||||||
|
|
||||||
getOperatingSystem(): string {
|
getOperatingSystem(): string {
|
||||||
return this.metadata?.labels?.["kubernetes.io/os"]
|
return this.metadata?.labels?.["kubernetes.io/os"]
|
||||||
|
|| this.metadata?.labels?.["beta.kubernetes.io/os"]
|
||||||
|| this.status?.nodeInfo?.operatingSystem
|
|| this.status?.nodeInfo?.operatingSystem
|
||||||
|| "linux";
|
|| "linux";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user