1
0
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:
Jari Kolehmainen 2020-04-21 20:22:27 +03:00 committed by GitHub
parent 6826c43102
commit 3a92e5d3ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"]
} }
} }