You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/08/27 16:34:27 UTC

[GitHub] [camel-k] JustinKuli commented on issue #1677: Example Integration in the ClusterServiceVersion stuck in Deploying phase

JustinKuli commented on issue #1677:
URL: https://github.com/apache/camel-k/issues/1677#issuecomment-682058647


   By comparing this YAML to a working Integration, I believe the problem is in the last line: `name: Example.java` needs to be indented to be part of the item in the `sources` list. Currently the YAML is re-formatted to this in the cluster:
   ```
   spec:
     name: Example.java
     sources:
     - content: |
         import org.apache.camel.builder.RouteBuilder;
   
         public class Example extends RouteBuilder {
             @Override
             public void configure() throws Exception {
                 from("timer:tick")
                     .setBody(constant("Hello World!"))
                 .to("log:info?skipBodyLineSeparator=false");
             }
         }
   ```
   
   But it should be more like this:
   ```
   spec:
     sources:
     - name: Example.java
       content: |
         import org.apache.camel.builder.RouteBuilder;
   
         public class Example extends RouteBuilder {
             @Override
             public void configure() throws Exception {
                 from("timer:tick")
                     .setBody(constant("Hello World!"))
                 .to("log:info?skipBodyLineSeparator=false");
             }
         }
   ```
   
   I found the source for this yaml inside https://github.com/apache/camel-k/blob/master/deploy/olm-catalog/camel-k-dev/1.1.0-snapshot/camel-k.v1.1.0-snapshot.clusterserviceversion.yaml, but I'm not sure where it would be updated to get into the next release.


----------------------------------------------------------------
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:
users@infra.apache.org