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 2021/07/27 13:33:55 UTC

[GitHub] [camel-kamelets] lburgazzoli commented on issue #449: To-D doesn't work in a Kamelet

lburgazzoli commented on issue #449:
URL: https://github.com/apache/camel-kamelets/issues/449#issuecomment-887517188


   ```yaml
   apiVersion: camel.apache.org/v1alpha1
   kind: Kamelet
   metadata:
     name: azure-storage-blob-source
   spec:
     definition:
       title: "Azure Storage Blob Source"
       description: |-
         Consume Files from Azure Storage Blob.
       required:
         - period
         - accountName
         - containerName
         - accessKey
       type: object
       properties:
         period:
           title: Period between Polls
           description: The interval between fetches to the Azure Storage Container in milliseconds
           type: integer
           default: 10000
         accountName:
           title: Account Name
           description: The Azure Storage Blob account name.
           type: string
         containerName:
           title: Container Name
           description: The Azure Storage Blob container name.
           type: string
         accessKey:
           title: Access Key
           description: The Azure Storage Blob access Key.
           type: string
           format: password
           x-descriptors:
           - urn:alm:descriptor:com.tectonic.ui:password
     dependencies:
       - "camel:azure-storage-blob"
       - "camel:kamelet"
       - "camel:core"
       - "camel:jsonpath"
       - "camel:timer"
     flow:
       from:
         uri: "timer:azure-storage-blob-stream"
         parameters:
           period: "{{period}}"
         steps:
         - to:
             uri: "azure-storage-blob:{{accountName}}/{{containerName}}"
             parameters:
               operation: "listBlobs"
               accessKey: "{{accessKey}}"
         - split:
             jsonpath: "$.*"
             steps:
             - set-property:
                 name: azureBlobName
                 simple: ${body.name}
             - to-d: "azure-storage-blob:{{accountName}}/{{containerName}}?accessKey=RAW({{accessKey}})&operation=getBlob&blobName=${exchangeProperty.azureBlobName}"
             - to: "kamelet:sink"
   ```
   
   @davsclaus I think the `to-d` here fails because when the real url is computed, the local properties are not more known.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org