kube-HPC / hkube

🐟 High Performance Computing over Kubernetes - Core Repo 🎣
http://hkube.io
MIT License
307 stars 20 forks source link

allow to use multiple values in node selector. #1769

Closed golanha closed 1 year ago

golanha commented 1 year ago

In task executor we turn the value sent to node selector in to an array, we should check its not an array already befor we do that:

making v an array : [v] see: Object.entries(nodeSelector).forEach(([k, v]) => { matchExpressions.push({ key: k, operator: 'In', values: [v] }); });