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 authored and GitHub committed 2020-04-21 20:22:27 +03:00
1 parent 6826c43102
commit 3a92e5d3ab
1 file changed
+2 -2
+2 -2
View File
@@ -414,9 +414,9 @@ export class Pod extends WorkloadKubeObject {
getSelectedNodeOs() {
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"]
}
}