-
Notifications
You must be signed in to change notification settings - Fork 533
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(jkube-kit-build-api): Added support for overriding Build Args appearing in multiple sources #3637
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: l3002 <[email protected]>
Signed-off-by: l3002 <[email protected]>
Signed-off-by: l3002 <[email protected]>
Eclipse JKube CI ReportStarted new GH workflow run for #3637 (2025-01-23T05:09:05Z) ⚙️ JKube E2E Tests (12922546865)
|
Thanks, overall changes look good. Shall we also document the predence in the user facing docs: https://eclipse.dev/jkube/docs/kubernetes-maven-plugin/#_build_args You can find it's source here : _buildargs.adoc |
Yeah, I think I missed that. I'll push a commit for that as well. |
Signed-off-by: l3002 <[email protected]>
Quality Gate passedIssues Measures |
properties which are not Docker https://docs.docker.com/engine/reference/builder/#arg[predefined] properties, the | ||
The following order of precedence will be used for resolving Docker Build Args specified across multiple sources: | ||
|
||
**System Properties** (highest precedence) > **Project Properties** > **Plugin Configuration** (lowest precedence) |
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.
Image Configuration has higher precedence than System properties, right?
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.
yeah, Image Configuration has higher precedence than System properties. I was considering adding this to the docs as well but then I saw that the docs address build args specified in properties. If you want I can add another image configuration to the valid sources and precedence order in the docs.
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.
Maybe you can specify in some sentence below that ImageConfiguration build args override all property values.
JKubeConfiguration configuration, KitLogger logger) { | ||
List<Map<String, String>> buildArgSources = new ArrayList<>(); | ||
|
||
// Add build arg sources following order of precedence |
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.
// Add build arg sources following order of precedence | |
// Add build arg sources following increasing order of precedence |
Just minor comments otherwise looks good. Thanks a lot! 👍 |
Description
Fixes #3000
The following changes were made to add support for overriding Build Args appearing in multiple sources:
Type of change
test, version modification, documentation, etc.)
Checklist