-
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
Revisit configuration options #2003
Comments
/cc @astefanutti @squakez |
I realise from apache/camel-k-runtime#624, that any ConfigMap or Secret is (attempted to be) loaded as properties file. I'd agree with @lburgazzoli comment from apache/camel-k-runtime#593:
It seems only application properties files should be mounted into the So currently, we have the ServiceBindings, ConfigMaps and Secrets mounted under the That also means the existing |
Yep, I'd also add a new property function on camel-kruntime like |
Would a |
I am working on this. |
* Changed Java test with Groovy test * Covered all resources cases (base encoded) Ref apache#2003
* Added configmap and secret integration tests * Refactored to be included and run under /common dir Ref apache#2003
* Added configmap and secret integration tests * Refactored to be included and run under /common dir Ref apache#2003
* Changed Java test with Groovy test * Covered all resources cases (base encoded) Ref #2003
* Added configmap and secret integration tests * Refactored to be included and run under /common dir Ref #2003
@squakez @nicolaferraro @astefanutti wondering if we should create a |
That sound like a good idea worth exploring. If we follow that path, we may want to deprecate the |
Also, in that spirit of moving / "encapsulating" the configurability responsibility to the traits, it may be logical to:
|
Yes, that seems the best path to follow. As we must ensure compatibility, I may follow an approach where I will develop the feature minimizing the impact on the existing code, if I see it makes sense, and then encapsulating the logic into a separate trait. |
* Provide support for configmap, secret or local file * Refactoring the structure of mount points to distinguish clearly between config and resource options Ref apache#2003
Adding backward compatibility and a deprecation notice. Ref apache#2003
Adding the possibility to specify the destination path for any resource Ref apache#2003
Won't accept any resource/config file larger than 1MB, due to the limitation on K8S CustomResources Ref apache#2003
* Added support to specify a single key from a configmap/secret in --resource or --config flag * Refactoring the RunConfigOption struct to include the new feature and hide the complexity to usage Ref apache#2003
* feat(cmd/run): resource option refactoring * Provide support for configmap, secret or local file * Refactoring the structure of mount points to distinguish clearly between config and resource options Ref apache#2003 * refactor(crd): configuration resource type Ref apache#2003 * refactor(example): resource run option * refactor(e2e): resource option integration test Ref apache#2003 * feat(cmd/run): --resource filename compatibility Adding backward compatibility and a deprecation notice. Ref apache#2003 * feat(cmd/run): modeline resource support Ref apache#2003 * feat(cmd/run): resource @path support Adding the possibility to specify the destination path for any resource Ref apache#2003 * chore(crd): autogen update Ref apache#2003 * doc(example): resource @path * feat(cmd/run): file size limitation Won't accept any resource/config file larger than 1MB, due to the limitation on K8S CustomResources Ref apache#2003 * refactor(cmd/run): synch all option files Ref apache#2003 * chore(e2e): run option with destination path Ref apache#2003 * feat(cmd/run): validate destination path Ref apache#2003 * fix(e2e): test name typo * feat(cmd/run): configmap/secret key filtering * Added support to specify a single key from a configmap/secret in --resource or --config flag * Refactoring the RunConfigOption struct to include the new feature and hide the complexity to usage Ref apache#2003 * chore(crd): configmap/secret eky filtering regen Ref apache#2003 * chore(e2e): configmap/secret key test Ref apache#2003 * doc(example): configmap/secret key selection * feat(cmd/run): warn when using path on --config Ref apache#2003 * chore(cmd/run): single resource dir and cli syntax description Ref apache#2003 * feat(cmd/run): resource option refactoring Go mod vendor synch
* doc: new configuration explained Ref apache#2003 * fix(doc): kube-config global flag * doc(examples): http * doc(examples): databases * chore(examples): fix with resource dir
As today there is a little bit of confusion about the options to configure the runtime (you can blame me as I introduced them in the early days of camel-k) and I think it is now time to rethink them.
I'm thinking about something like:
This issue also relates to:
The text was updated successfully, but these errors were encountered: