You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/06/28 09:47:46 UTC

[camel-kamelets] branch 3.20.x updated: Azure Storage Blob Kamelets: Expose the credentialsType parameter with SHARED_ACCOUNT_KEY as default

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch 3.20.x
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


The following commit(s) were added to refs/heads/3.20.x by this push:
     new 222c56b6 Azure Storage Blob Kamelets: Expose the credentialsType parameter with SHARED_ACCOUNT_KEY as default
222c56b6 is described below

commit 222c56b6dd4ba5f03d6c69ce87b4b3679acb5181
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jun 28 11:42:27 2023 +0200

    Azure Storage Blob Kamelets: Expose the credentialsType parameter with SHARED_ACCOUNT_KEY as default
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/azure-storage-blob-sink.kamelet.yaml             | 11 ++++++++---
 kamelets/azure-storage-blob-source.kamelet.yaml           | 15 ++++++++++-----
 .../kamelets/azure-storage-blob-sink.kamelet.yaml         | 11 ++++++++---
 .../kamelets/azure-storage-blob-source.kamelet.yaml       | 15 ++++++++++-----
 4 files changed, 36 insertions(+), 16 deletions(-)

diff --git a/kamelets/azure-storage-blob-sink.kamelet.yaml b/kamelets/azure-storage-blob-sink.kamelet.yaml
index 34f8e24f..3853cf04 100644
--- a/kamelets/azure-storage-blob-sink.kamelet.yaml
+++ b/kamelets/azure-storage-blob-sink.kamelet.yaml
@@ -38,7 +38,6 @@ spec:
     required:
       - accountName
       - containerName
-      - accessKey
     type: object
     properties:
       accountName:
@@ -59,6 +58,12 @@ spec:
         x-descriptors:
         - urn:alm:descriptor:com.tectonic.ui:password
         - urn:camel:group:credentials
+      credentialType:
+        title: Credential Type
+        description: Determines the credential strategy to adopt.
+        type: string
+        enum: ["SHARED_ACCOUNT_KEY", "AZURE_IDENTITY"]
+        default: "SHARED_ACCOUNT_KEY"
   dependencies:
     - "camel:core"
     - "camel:azure-storage-blob"
@@ -87,6 +92,6 @@ spec:
       - to:
           uri: "azure-storage-blob://{{accountName}}/{{containerName}}"
           parameters:
-            accessKey: "{{accessKey}}"
+            accessKey: "{{?accessKey}}"
             operation: "uploadBlockBlob"
-            credentialType: "SHARED_ACCOUNT_KEY"
+            credentialType: "{{credentialType}}"
diff --git a/kamelets/azure-storage-blob-source.kamelet.yaml b/kamelets/azure-storage-blob-source.kamelet.yaml
index a2a7ad17..8d19b85d 100644
--- a/kamelets/azure-storage-blob-source.kamelet.yaml
+++ b/kamelets/azure-storage-blob-source.kamelet.yaml
@@ -38,7 +38,6 @@ spec:
     required:
       - accountName
       - containerName
-      - accessKey
     type: object
     properties:
       accountName:
@@ -71,6 +70,12 @@ spec:
         x-descriptors:
         - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
         default: false
+      credentialType:
+        title: Credential Type
+        description: Determines the credential strategy to adopt.
+        type: string
+        enum: ["SHARED_ACCOUNT_KEY", "AZURE_IDENTITY"]
+        default: "SHARED_ACCOUNT_KEY"
   dependencies:
     - "camel:azure-storage-blob"
     - "camel:kamelet"
@@ -94,8 +99,8 @@ spec:
     from:
       uri: "azure-storage-blob:{{accountName}}/{{containerName}}"
       parameters:
-        accessKey: "{{accessKey}}"
-        credentialType: "SHARED_ACCOUNT_KEY"
+        accessKey: "{{?accessKey}}"
+        credentialType: "{{credentialType}}"
         delay: "{{delay}}"
       steps:
         - process:
@@ -110,6 +115,6 @@ spec:
                       uri: "azure-storage-blob:{{accountName}}/{{containerName}}"
                       parameters:
                         operation: "deleteBlob"
-                        accessKey: "{{accessKey}}"
-                        credentialType: "SHARED_ACCOUNT_KEY"
+                        accessKey: "{{?accessKey}}"
+                        credentialType: "{{credentialType}}"
 
diff --git a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-sink.kamelet.yaml
index 34f8e24f..3853cf04 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-sink.kamelet.yaml
@@ -38,7 +38,6 @@ spec:
     required:
       - accountName
       - containerName
-      - accessKey
     type: object
     properties:
       accountName:
@@ -59,6 +58,12 @@ spec:
         x-descriptors:
         - urn:alm:descriptor:com.tectonic.ui:password
         - urn:camel:group:credentials
+      credentialType:
+        title: Credential Type
+        description: Determines the credential strategy to adopt.
+        type: string
+        enum: ["SHARED_ACCOUNT_KEY", "AZURE_IDENTITY"]
+        default: "SHARED_ACCOUNT_KEY"
   dependencies:
     - "camel:core"
     - "camel:azure-storage-blob"
@@ -87,6 +92,6 @@ spec:
       - to:
           uri: "azure-storage-blob://{{accountName}}/{{containerName}}"
           parameters:
-            accessKey: "{{accessKey}}"
+            accessKey: "{{?accessKey}}"
             operation: "uploadBlockBlob"
-            credentialType: "SHARED_ACCOUNT_KEY"
+            credentialType: "{{credentialType}}"
diff --git a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-source.kamelet.yaml
index a2a7ad17..8d19b85d 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-source.kamelet.yaml
@@ -38,7 +38,6 @@ spec:
     required:
       - accountName
       - containerName
-      - accessKey
     type: object
     properties:
       accountName:
@@ -71,6 +70,12 @@ spec:
         x-descriptors:
         - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
         default: false
+      credentialType:
+        title: Credential Type
+        description: Determines the credential strategy to adopt.
+        type: string
+        enum: ["SHARED_ACCOUNT_KEY", "AZURE_IDENTITY"]
+        default: "SHARED_ACCOUNT_KEY"
   dependencies:
     - "camel:azure-storage-blob"
     - "camel:kamelet"
@@ -94,8 +99,8 @@ spec:
     from:
       uri: "azure-storage-blob:{{accountName}}/{{containerName}}"
       parameters:
-        accessKey: "{{accessKey}}"
-        credentialType: "SHARED_ACCOUNT_KEY"
+        accessKey: "{{?accessKey}}"
+        credentialType: "{{credentialType}}"
         delay: "{{delay}}"
       steps:
         - process:
@@ -110,6 +115,6 @@ spec:
                       uri: "azure-storage-blob:{{accountName}}/{{containerName}}"
                       parameters:
                         operation: "deleteBlob"
-                        accessKey: "{{accessKey}}"
-                        credentialType: "SHARED_ACCOUNT_KEY"
+                        accessKey: "{{?accessKey}}"
+                        credentialType: "{{credentialType}}"