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

Support for integration configuration #68

Merged
merged 3 commits into from
Sep 14, 2018

Conversation

lburgazzoli
Copy link
Contributor

@lburgazzoli lburgazzoli commented Sep 13, 2018

i.e.:

kamel context create -d camel:dns -p global.property=test global

kamel run --name myroutes --context global --configmap cmint --secret secint --property test=true runtime/examples/props.js

configmaps, secrets and properties can be set at context and/or integration level.

Fixes #67
Fixes #65
FIxes #62

@@ -25,7 +25,7 @@ type ProjectDefinition struct {
Project Project
JavaSources map[string]string
Resources map[string]string
Env map[string]string
Env map[string]string // TODO: should we deprecate it ? env are set on deployment
Copy link
Member

Choose a reason for hiding this comment

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

I'm thinking to a "merge" function, where the configuration at context level is used as base for the configuration at integration level. We can do it when creating the integration, so you're right, this can be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is already done, env, properties, configmap and secretes from the required context are are applied to integration's deployment :)

Copy link
Member

@nicolaferraro nicolaferraro left a comment

Choose a reason for hiding this comment

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

Looks very good!

@nicolaferraro nicolaferraro merged commit 99f8129 into apache:master Sep 14, 2018
@lburgazzoli lburgazzoli deleted the props-and-env branch September 14, 2018 07:29
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