Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-17565

kamel run -o yaml doesn't produce valid integration CR

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • camel-k-future
    • camel-k-1.4.1-GA
    • Camel-K
    • None
    • False
    • False
    • % %
    • Todo

      When running kamel run ... -o yaml the expectation is the output can be applied as a valid yaml definition via "oc create -f OUTPUT_FROM_KAMEL_RUN".

       

      However, when integration file contains modeline options, such as:

      // camel-k: dependency=mvn:com.github.javafaker:javafaker:1.0.2

      The resultant output starts with these two lines:

       

      Modeline options have been loaded from source files
      Full command: kamel run ...
      

       

      Further, the yaml does NOT include following two lines:

       

      apiVersion: camel.apache.org/v1 
      kind: Integration

       

      So out of the box, it can't be applied directly onto OCP.

       

        1. after.yaml
          3 kB
        2. before.yaml
          2 kB

            Unassigned Unassigned
            rhn-support-agiertli Anton Giertli
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: