cloud-bulldozer / go-commons

Code repository with all go common packages and libraries
Apache License 2.0
4 stars 9 forks source link

Node-density with mastersSchedulable: true #26

Closed rsevilla87 closed 12 months ago

rsevilla87 commented 1 year ago

Kube-burner's node-density uses the number of worker nodes to calculate the number of pods to deploy in the cluster. With this change recently pushed, kube-burner's failes because the nodes in the CI cluster has the scheduler configured with mastersSchedulable: true, hence the nodes are labeled as master and workers simultaneosly

https://github.com/cloud-bulldozer/go-commons/blob/97b61546de4fd5673e10ba17005fa01c01b13036/ocp-metadata/ocp-metadata.go#L215-L226

We should fix this corner case.