mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Check also beta.kubernetes.io/os selector for windows pod shell (#293)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
6826c43102
commit
3a92e5d3ab
@ -414,9 +414,9 @@ export class Pod extends WorkloadKubeObject {
|
|||||||
|
|
||||||
getSelectedNodeOs() {
|
getSelectedNodeOs() {
|
||||||
if (!this.spec.nodeSelector) return
|
if (!this.spec.nodeSelector) return
|
||||||
if (!this.spec.nodeSelector["kubernetes.io/os"]) return
|
if (!this.spec.nodeSelector["kubernetes.io/os"] && !this.spec.nodeSelector["beta.kubernetes.io/os"]) return
|
||||||
|
|
||||||
return this.spec.nodeSelector["kubernetes.io/os"]
|
return this.spec.nodeSelector["kubernetes.io/os"] || this.spec.nodeSelector["beta.kubernetes.io/os"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user