Skip to content
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(cmd): build-property flag #2309

Merged
merged 6 commits into from
May 26, 2021

Conversation

squakez
Copy link
Contributor

@squakez squakez commented May 18, 2021

With this PR we are introducing a new parameter, --build-property, whose goal is to let the user specify any configuration needed at build time. For example:

kamel run --build-property=quarkus.application.name=my-super-application ...

Will provide the quarkus.application.name to the properties expected by the build tasks, setting, in this case, the name of the application as expected by camel-quarkus.

Ref #2003

Release Note

feat(cmd): build-property flag

* The operator panicked because some equality on slices.
* Checking if the kit has no traits which was always having the comparison succesful
* Included a build-time-properties in Builder trait to provide the Build task the ability to add build time properties.
* Introduced a new flag which will allow the user to introduce build time properties.  It will convert into build-time-properties, as expected by the Builder trait.
pkg/trait/builder.go Outdated Show resolved Hide resolved
Copy link
Member

@astefanutti astefanutti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏼!

pkg/trait/builder.go Outdated Show resolved Hide resolved
@nicolaferraro nicolaferraro merged commit b9feccf into apache:main May 26, 2021
@nicolaferraro nicolaferraro mentioned this pull request Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants