-
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
Build configuration on IntegrationPlatform ignored #5289
Comments
@christophd are you sure this is happening with version 2.3.0? Just tested and it work as expected:
|
squakez
added
status/waiting-for-feedback
Needs some feedback
and removed
status/waiting-for-feedback
Needs some feedback
labels
Apr 18, 2024
Ah, I think I miss to read the second part, like it fails to execute when the property are set outside the trait. Gonna checking right now. |
squakez
added a commit
to squakez/camel-k
that referenced
this issue
Apr 18, 2024
squakez
added a commit
that referenced
this issue
Apr 19, 2024
squakez
added a commit
to squakez/camel-k
that referenced
this issue
Apr 19, 2024
squakez
added a commit
that referenced
this issue
Apr 19, 2024
squakez
added a commit
to jboss-fuse/camel-k
that referenced
this issue
Apr 19, 2024
Closes apache#5289 (cherry picked from commit apache/camel-k@c6b73dec6)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
The IntegrationPlatform spec is able to hold build configuration settings that should be applied to the integration image builds. However, some settings are ignored when set on the IntegrationPlatform (e.g.
build.buildConfiguration.platforms
).Status of the Integration platform after adding the setting:
I would expect the operator to use a setting
-Djib.from.platforms=linux/arm64
but it is not there (see logs below).When the platform is set via trait option on the integration (
kamel run simple.groovy -t builder.platforms="linux/arm64"
) it works and I can see the setting-Djib.from.platforms=linux/arm64
is being used during the integration image build as expected.Users should be able to set this also on IntegrationPlatform level for all integrations.
Steps to reproduce
k patch itp camel-k --type=merge -p '{"spec":{"build": { "buildConfiguration": {"platforms": ["linux/amd64","linux/arm64"]}}}}'
)-Djib.from.platforms=linux/arm64
during the buildRelevant log output
Camel K version
2.3.0-SNAPSHOT
The text was updated successfully, but these errors were encountered: