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/11/13 11:01:26 UTC

(camel-kamelets) 01/03: Use enum instead of x-descriptors - Log Action

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

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

commit 48baaa5d1ecb03389685dbde740e1e3f23570df0
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Nov 13 11:57:44 2023 +0100

    Use enum instead of x-descriptors - Log Action
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/log-action.kamelet.yaml                                  | 8 +-------
 .../src/main/resources/kamelets/log-action.kamelet.yaml           | 8 +-------
 2 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/kamelets/log-action.kamelet.yaml b/kamelets/log-action.kamelet.yaml
index 3a6d5b34..eabba488 100644
--- a/kamelets/log-action.kamelet.yaml
+++ b/kamelets/log-action.kamelet.yaml
@@ -44,13 +44,7 @@ spec:
         description: Logging level to use
         type: string
         default: "INFO"
-        x-descriptors:
-        - 'urn:alm:descriptor:com.tectonic.ui:select:TRACE'
-        - 'urn:alm:descriptor:com.tectonic.ui:select:DEBUG'
-        - 'urn:alm:descriptor:com.tectonic.ui:select:INFO'
-        - 'urn:alm:descriptor:com.tectonic.ui:select:WARN'
-        - 'urn:alm:descriptor:com.tectonic.ui:select:ERROR'
-        - 'urn:alm:descriptor:com.tectonic.ui:select:OFF'
+        enum: ["TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF"]
       logMask:
         title: Log Mask
         description: Mask sensitive information like password or passphrase in the log
diff --git a/library/camel-kamelets/src/main/resources/kamelets/log-action.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/log-action.kamelet.yaml
index 3a6d5b34..eabba488 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/log-action.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/log-action.kamelet.yaml
@@ -44,13 +44,7 @@ spec:
         description: Logging level to use
         type: string
         default: "INFO"
-        x-descriptors:
-        - 'urn:alm:descriptor:com.tectonic.ui:select:TRACE'
-        - 'urn:alm:descriptor:com.tectonic.ui:select:DEBUG'
-        - 'urn:alm:descriptor:com.tectonic.ui:select:INFO'
-        - 'urn:alm:descriptor:com.tectonic.ui:select:WARN'
-        - 'urn:alm:descriptor:com.tectonic.ui:select:ERROR'
-        - 'urn:alm:descriptor:com.tectonic.ui:select:OFF'
+        enum: ["TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF"]
       logMask:
         title: Log Mask
         description: Mask sensitive information like password or passphrase in the log