lbroudoux opened a new issue #1651: URL: https://github.com/apache/camel-k/issues/1651
Hi! I am running the KNative tutorial from Red Hat Developers (https://redhat-developer-demos.github.io/knative-tutorial/knative-tutorial-camelk/camel-k-basics.html) and am deploying the `timed-greeter.yaml` sample. I am running an OpenShift 4.4 cluster with the **Red Hat Integration - Camel K** operator in version `1.0.0` installed from OLM. I previously had installed the `1.0.0-RC2` release of the CLI and deployment just runs fine. Here's some relevant logs: ``` $ ~/Development/camel-k-client-1.0.0-RC2-mac-64bit/kamel run --dev get-started/timed-greeter.yaml integration "timed-greeter" created Progress: integration "timed-greeter" in phase Initialization [...] Integration timed-greeter in phase Running [1] Monitoring pod timed-greeter-8448dd7474-zdthd[1] 2020-08-04 09:19:07.708 INFO [main] LRUCacheFactory - Detected and using LURCacheFactory: camel-caffeine-lrucache [1] 2020-08-04 09:19:08.094 INFO [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.RuntimeConfigurer@1b410b60 [1] 2020-08-04 09:19:08.094 INFO [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.ContextConfigurer@77659b30 [1] 2020-08-04 09:19:08.095 INFO [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.RoutesConfigurer@6f8e8894 [1] 2020-08-04 09:19:08.095 INFO [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.RoutesDumper@15f47664 [1] 2020-08-04 09:19:08.096 INFO [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.PropertiesFunctionsConfigurer@4b2c5e02 [1] 2020-08-04 09:19:08.099 INFO [main] ApplicationRuntime - Listener org.apache.camel.k.listener.RuntimeConfigurer@1b410b60 executed in phase Starting [1] 2020-08-04 09:19:08.106 INFO [main] ApplicationRuntime - Listener org.apache.camel.k.listener.PropertiesFunctionsConfigurer@4b2c5e02 executed in phase Starting [1] 2020-08-04 09:19:08.107 INFO [main] BaseMainSupport - Using properties from: [1] 2020-08-04 09:19:08.111 INFO [main] RuntimeSupport - Looking up loader for language: yaml [1] 2020-08-04 09:19:08.797 INFO [main] RuntimeSupport - Found loader org.apache.camel.k.loader.yaml.YamlSourceLoader@37b70343 for language yaml from service definition [1] 2020-08-04 09:19:08.801 INFO [main] RoutesConfigurer - Loading routes from: file:/etc/camel/sources/i-source-000/timed-greeter.yaml?language=yaml [...] ``` I can check in created deployment that `CAMEL_K_ROUTES` value is set and correct `ConfigMap` is referenced: ``` $ kubectl -n knativetutorial get deployment/timed-greeter -o yaml | grep -A 1 CAMEL_K_ROUTES - name: CAMEL_K_ROUTES value: file:/etc/camel/sources/i-source-000/timed-greeter.yaml?language=yaml $ kubectl -n knativetutorial get deployment/timed-greeter -o yaml | grep -A 7 volumes volumes: - configMap: defaultMode: 420 items: - key: content path: timed-greeter.yaml name: timed-greeter-source-000 name: i-source-000 ``` Trying out the new `1.0.0` release of the CLI (and after cleaning `integration` and `integrationkit` on the cluster), route file is no longer injected into the created deployment. See some relevant logs below: ``` ~/Development/camel-k-client-1.0.0-mac-64bit/kamel run --dev get-started/timed-greeter.yaml integration "timed-greeter" created Progress: integration "timed-greeter" in phase Initialization [...] [1] Monitoring pod timed-greeter-5bcb45cb94-pw2qv[1] 2020-08-04 09:32:38.012 INFO [main] LRUCacheFactory - Detected and using LURCacheFactory: camel-caffeine-lrucache [1] 2020-08-04 09:32:38.309 INFO [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.RuntimeConfigurer@18317edc [1] 2020-08-04 09:32:38.309 INFO [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.ContextConfigurer@5852c06f [1] 2020-08-04 09:32:38.310 INFO [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.RoutesConfigurer@62656be4 [1] 2020-08-04 09:32:38.311 INFO [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.RoutesDumper@7d61eb55 [1] 2020-08-04 09:32:38.311 INFO [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.PropertiesFunctionsConfigurer@7283d3eb [1] 2020-08-04 09:32:38.315 INFO [main] ApplicationRuntime - Listener org.apache.camel.k.listener.RuntimeConfigurer@18317edc executed in phase Starting [1] 2020-08-04 09:32:38.394 INFO [main] ApplicationRuntime - Listener org.apache.camel.k.listener.PropertiesFunctionsConfigurer@7283d3eb executed in phase Starting [1] 2020-08-04 09:32:38.396 INFO [main] BaseMainSupport - Using properties from: [1] 2020-08-04 09:32:38.396 WARN [main] RoutesConfigurer - No routes found in CAMEL_K_ROUTES environment variable [...] ``` Checking the deployment, volume is no longer injected and the `ConfigMap` does not exist anymore: ``` $ kubectl -n knativetutorial get deployment/timed-greeter -o yaml | grep -A 1 CAMEL_K_ROUTES - name: CAMEL_K_ROUTES - name: CAMEL_K_CONF $ kubectl -n knativetutorial get deployment/timed-greeter -o yaml | grep -A 7 volumes $ kubectl -n knativetutorial get cm/timed-greeter-source-000 Error from server (NotFound): configmaps "timed-greeter-source-000" not found ``` I have also tried release `1.0.1` of the CLI or removing the dev mode but have same behavior. Am I missing something or is it a regression ? Thanks, ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
