Skip to content

Commit

Permalink
Check also beta.kubernetes.io/os selector for windows pod shell (#293)
Browse files Browse the repository at this point in the history
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
  • Loading branch information
jakolehm authored Apr 21, 2020
1 parent 6826c43 commit 3a92e5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dashboard/client/api/endpoints/pods.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
}

Expand Down

0 comments on commit 3a92e5d

Please # to comment.