check also beta.kubernetes.io/os selector

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2020-04-21 19:57:13 +03:00
1 parent c7f92494e0
commit 75e7f0490f
1 file changed
+2 -2
+2 -2
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"]
} }
} }