-
Notifications
You must be signed in to change notification settings - Fork 350
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
BuilderTrait nodeSelector configuration not working for jvm builds #5838
Comments
I had previously worked on this area in #4968. I may have missed something at that time... |
It seems that, for some reason, when the build configuration is inherited by the platform is not applied to the Build object as it is happening with the trait. As a workaround you can add the |
@squakez I can work on finding the root cause and fixing this one. |
Nice, thanks! I've set 2.5.0 as milestone. I think we could do a release by the end of the month, beginning of next one. |
After some initial investigation, I found out that I can define strategy: pod and nodeSelector at a few locations. They could be at
If I set both the build strategy and the node selector at the same location, they work as expected. But this gets a little confusing as we mix up the locations: I think we may have to define the rules for handling the configuration. @squakez How does that sound? |
Thanks for providing this analysis. I think we need to figure it out a single place where this configuration is expected to avoid creating such confusion. I tend to think the builder trait is the right place as it allows to make this work even individually on the Integration. If we agree, we can deprecate the rest and keep this working as it is. |
Yes, that sounds reasonable. I'll evaluate the change in the next few days and decide whether I can tackle it in my available time, as it may require more effort than I anticipated. I'll let you know. |
Hi @squakez. I tried working on this for the last few days, but it would definitely require more effort and a deeper understanding of the code than I have. I see that BuildConfiguration is being used at the IntegrationPlatform spec and at the Build spec. In the Build it's used as a Build property and also at the Task level. I tried using specific structs for each location where BuildConfiguration is currently used, keeping only what makes sense at each location, but there was a lot of impacts in the code, and that's where I think someone with a deeper understanding of the project might handle it better than me. I filed it as bug, but maybe this has to change to some refactoring work for 2.6.0+, as the 2.5.0 date is very close. |
Thanks @lsergio, I may have a look to see how the change impact the rest of the code. As for the release, we need to wait Camel Quarkus 3.15 so we can default the runtime to the new Camel LTS (4.8). We don't have any strict date, so, if we manage to work before, we can include in next minor, otherwise we can defer to next one. |
What happened?
Builder trait nodeSelector configuration is not being used on jvm builders
Steps to reproduce
pod
build strategy, and also to add a nodeSelector to the builder pods:Relevant log output
No response
Camel K version
2.4.0
The text was updated successfully, but these errors were encountered: