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
Add some sugar for additional sources #1400
Conversation
604ecdb
to
04367fe
Compare
310bb4a
to
f3d2013
Compare
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.
Getting some errors:
[nferraro@localhost camel-k]$ kamel run examples/simple.groovy --source examples/Master.java --save
integration "simple" updated
Error: open .kamel/kamel-config.yaml: permission denied
I think we've switched to a unique file in the root in order to have it clearly visible when running the integrations. I was also thinking to add a flag like --use-config
to remind users that they're using some specific configurations, because I myself tend to forget..
Also, running:
(it doesn't make sense to run those integrations together, it's just for testing) Followed by:
Should take to the same result, but configuration is not loaded in the second case. |
It's not specifically related to |
f3d2013
to
eee2d3d
Compare
@nicolaferraro mind testing it again ? |
Still not loading
|
We should add some it tests btw |
there is a test but may cause the failure of other tests as we use a global viper so I disabled it |
eee2d3d
to
d455b7f
Compare
@nicolaferraro should finally work now |
No way to override/change what it's in the kamel-config.yaml:
|
This is a little bit tricky and not sure if it is related to this PR as in fact when the run command runs, it performs two steps:
the second step is of course not bounded to any flag as it is dynamic so any flag value gets overridden by the value from the persisted configuration. let me think about what I can do |
so I've added a huge hack, please test it again |
Mmh... save is not additive, while execution is:
Now in config you have:
Now you want to add a dependency:
But what you have now in config is:
I.e. the master integration is deleted. It's a choice, that is different from the current behavior. But the problem is that now the integration contains both sources (simple and Master). |
OK now it should be additive. I'll revisit the whole cmd stuff after 1.0 |
Looks good enough.. I mean:
|
Yeah, this is a know issue. btw, looks like the CI is broken |
818afea
to
9dceba3
Compare
Fixes #1388
Release Note