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

Kbind resolves "channel/messages" as Kamelet "messages" in namespace "channel"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • camel-k-1.6-GA
    • None
    • Camel-K
    • None
    • False
    • False
    • % %
    • CK2
    • Todo
    • Hide

      1.

      apiVersion: messaging.knative.dev/v1
      kind: Channel 
      metadata: 
        name: messages-channel
      
      
      $ oc apply -f messages-channel.yaml 
      

      2.

      $ kamel bind aws-sqs-source -p "source.queueNameOrArn=kamelet-myq" -p "source.accessKey=XXX" -p "source.secretKey=XXX" -p "source.region=us-west-1"  channel/messages-channel
      
      Show
      1. apiVersion: messaging.knative.dev/v1 kind: Channel metadata: name: messages-channel $ oc apply -f messages-channel.yaml  2. $ kamel bind aws-sqs-source -p "source.queueNameOrArn=kamelet-myq" -p "source.accessKey=XXX" -p "source.secretKey=XXX" -p "source.region=us-west-1" channel/messages-channel

      On OCP 4.6, with Camel K 1.4.0 operator (GA) installed from Provider Type "Red Hat", Red Hat OpenShift Serverless operator v1.16.0:

      I would like to create kameletbinding from source kamelet to Channel, however command from documentation resolves incorrectly Channel as Kamelet:

      $ kamel bind aws-sqs-source -p "source.queueNameOrArn=kamelet-myq" -p "source.accessKey=XXX" -p "source.secretKey=XXX" -p "source.region=us-west-1"  channel/messages-channel
      
      No IntegrationPlatform resource in lfabriko namespace
      Warning: Kamelet "messages-channel" not found in namespace "channel"
      kamelet binding "aws-sqs-source-to-messages-channel" created
      
      $ oc get kameletbinding aws-sqs-source-to-messages-channel -o yaml
      ...
      spec:
        sink:
          ref:
            apiVersion: camel.apache.org/v1alpha1
            kind: Kamelet
            name: messages-channel
            namespace: channel
        source:
          properties:
            accessKey: XXX
            queueNameOrArn: kamelet-myq
            region: us-west-1
            secretKey: XXX
          ref:
            apiVersion: camel.apache.org/v1alpha1
            kind: Kamelet
            name: aws-sqs-source
            namespace: lfabriko
      
      
      

      If I change command to "channel:messages-channel", it works correctly

              nicolaferraro Nicola Ferraro (Inactive)
              lfabriko@redhat.com Lucie Krejcirova
              Lucie Krejcirova Lucie Krejcirova
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: