atlassian / escalator

Escalator is a batch or job optimized horizontal autoscaler for Kubernetes
Apache License 2.0
662 stars 59 forks source link

Escalator does not consider NodeAffinity match selector type #160

Closed Jacobious52 closed 5 years ago

Jacobious52 commented 5 years ago

Currently, Escalator only looks at the values inside the RequiredDuringSchedulingIgnoredDuringExecution NodeAffinity selection. It does not consider the matches selectors such as In, Equal, NotIn, NotEqual. Escalator should be updated to handle the logic for these selectors properly.

Ref: https://github.com/atlassian/escalator/blob/cbe8c672b3608d04494f1eaccd596eb4f9069365/pkg/controller/node_group.go#L211