-
Notifications
You must be signed in to change notification settings - Fork 147
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
k6.spec.separate should append podAntiAffinity to Affinity and not overwrite it #97
Comments
Hi @jdheyburn thanks for the issue! I must ask what do you mean by
? k6-operator/pkg/resources/jobs/runner.go Lines 199 to 220 in b6c3258
But if one uses the override with manually set The way I see it, I definitely understand the desire to improve UX here but I don't yet see how to combine it in a way that will:
Suggestions are welcome 🙂 |
Potential solution: switch to topology spread constraints instead of anti-affinity in implementation of |
Hello
I've been using k6.spec.separate = true to define a podAntiAffinity with other k6 runners, however I'd like to add my own affinity using k6.spec.runner.affinity, but this logic in the operator overwrites it:
Because of this, I have to set k8.spec.separate =
false
. While I can replicate the antiAffinity in my custom affinity block, it would be better UX to have it appended to a podAntiAffinity if there is one defined already.Thanks
Joe
The text was updated successfully, but these errors were encountered: