keda
keda copied to clipboard
Add requireAllDemandsAndIgnoreOthers flag
This PR adds an extra option requireAllDemandsAndIgnoreOthers
(name tbd) to the azure pipeline scaler which ensures that all demands in the scaler definition is present in the incoming job, while ignoring any other demands the job may have.
This is different from requireAllDemands
which requires all demands to be an exact match.
Checklist
- [ ] ~~When introducing a new scaler, I agree with the scaling governance policy~~
- [x] I have verified that my change is according to the deprecations & breaking changes policy
- [x] Tests have been added
- [ ] Changelog has been updated and is aligned with our changelog requirements
- [ ] ~~A PR is opened to update our Helm chart (repo) (if applicable, ie. when deployment manifests are modified)~~
- [ ] A PR is opened to update the documentation on (repo) (if applicable)
- [x] Commits are signed with Developer Certificate of Origin (DCO - learn more)
Fixes #5579