-
Notifications
You must be signed in to change notification settings - Fork 348
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
feat(#5354): Allow adding toleration into builder pod #5667
base: main
Are you sure you want to change the base?
feat(#5354): Allow adding toleration into builder pod #5667
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the work. I think it would be better to reuse the same approach we've used for Integrations' tolerations. See https://github.com/apache/camel-k/blob/main/pkg/apis/camel/v1/trait/toleration.go - you may reuse entirely the same logic. Ideally we should provide the concept of taint, and have a way to express it in the same syntax so it is easier from CLI to set via -t builder.taint=...
(which should also the way we unit test it).
BTW, also better to squash the commits into a single one in order to have a cleaner history. |
Maybe some alternative approach would be to work directly on the Toleration trait, having an additional option like |
I was essentially following the approach from #4968 as we discussed. I like the approach of extending Toleration trait with new option for Builder pod and having the logic in a single place. So, if we are on the same page and that's what you prefer, I can look into adding this functionality there. Thanks |
Yeah, I would have preferred that. However, I think that now we've already taken the other path, ie, the nodeselector is already on the builder trait, so, it would feel weird to require another trait for toleration. Let's keep this here for now, but try to reuse the logic already available in the other trait (ie, transforming the taints). |
Okay, I will look into it. |
|
Any update on this development? I'd like to understand if it may be ready to be included in 2.4.0 (#5678) |
Im currently busy with our client. We are finishing project. I would like to pick up on this next or following week. I apologize for delay. |
No problem, there's no hurry. I understand that if it does not make in time for 2.4 will be fine to defer for 2.5. |
This PR has been automatically marked as stale due to 90 days of inactivity. |
Closes: #5354
Release Note