-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config extraNodeAffinity
and matchNodePurpose
combines incorrectly (OR instead of AND)
#3223
Comments
The following works around the issue but is ugly IMO:
|
I think I agree with that this is a bug, where the bug is that There is probably also then a bug for |
extraNodeAffinity.required
and matchNodePurpose=required
combines incorrectly
extraNodeAffinity.required
and matchNodePurpose=required
combines incorrectlyextraNodeAffinity
and matchNodePurpose
combines incorrectly (OR instead of AND)
As an aside I tried this (which is what I think the syntax should be) and it creates an invalid pod yaml:
|
I think we shouldn't change how extraNodeAffinity.required works to fix this - whats put there is a "pure" k8s specification we inject. I think instead we could consider merging in the section from This is a very tricky config to provide overall, and I'm not sure we can resolve this in a good way at the moment. |
It's certainly a breaking change if someone relies on todays behavior but I don't see how that could be possible. Either way I have a workaround so I'm not chomping for a solution, In the open source space this is very rarely used and almost never combined with the scheduler based on this github search: extraNodeAffinity language:YAML NOT path:tools/templates NOT path:*/schema.yaml NOT is:fork It's probably fine to document this oddness if it's not really fixable. |
Bug description
The below configuration option doesn't do what one would expect and it seems like a bug.
This generates 2 different match expressions as you can see below. If either of them match the pod is scheduled.
Naively I would expect this to generate a single match expression that is the union of the two like so:
I'm running 3.0.2 on AKS 1.27.3.
The text was updated successfully, but these errors were encountered: