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 2022/09/21 11:19:06 UTC

[camel] branch main updated (5224a31e7df -> ecf56030d7f)

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

acosentino pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


    from 5224a31e7df CAMEL-18533: camel-netty - TimeoutCorrelationManagerSupport should stop created thread-pools
     new 3420dd1caa1 CAMEL-18532 - GCP Secret Manager Dev Console: Add to Vault command for camel-jbang
     new e965ab93ad4 CAMEL-18532 - GCP Secret Manager Dev Console: Add to Vault command for camel-jbang
     new ecf56030d7f CAMEL-18532 - GCP Secret Manager Dev Console: Add to Vault command for camel-jbang

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../component/google/secret/manager/vault/PubsubReloadTriggerTask.java | 3 +++
 1 file changed, 3 insertions(+)


[camel] 03/03: CAMEL-18532 - GCP Secret Manager Dev Console: Add to Vault command for camel-jbang

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit ecf56030d7f098eb891f335d4920b6386e409b63
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 21 13:18:40 2022 +0200

    CAMEL-18532 - GCP Secret Manager Dev Console: Add to Vault command for camel-jbang
---
 .../component/google/secret/manager/vault/PubsubReloadTriggerTask.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/components/camel-google/camel-google-secret-manager/src/main/java/org/apache/camel/component/google/secret/manager/vault/PubsubReloadTriggerTask.java b/components/camel-google/camel-google-secret-manager/src/main/java/org/apache/camel/component/google/secret/manager/vault/PubsubReloadTriggerTask.java
index debd94ef150..4f10af7dfdd 100644
--- a/components/camel-google/camel-google-secret-manager/src/main/java/org/apache/camel/component/google/secret/manager/vault/PubsubReloadTriggerTask.java
+++ b/components/camel-google/camel-google-secret-manager/src/main/java/org/apache/camel/component/google/secret/manager/vault/PubsubReloadTriggerTask.java
@@ -229,7 +229,8 @@ public class PubsubReloadTriggerTask extends ServiceSupport implements CamelCont
             if (eventType.equalsIgnoreCase(SECRET_UPDATE) || eventType.equalsIgnoreCase(SECRET_VERSION_ADD)) {
                 if (matchSecret(secretId)) {
                     int secretNameBeginInd = secretId.lastIndexOf("/") + 1;
-                    updates.put(secretId.substring(secretNameBeginInd), Instant.ofEpochSecond(message.getPublishTime().getSeconds(), message.getPublishTime().getNanos()));
+                    updates.put(secretId.substring(secretNameBeginInd),
+                            Instant.ofEpochSecond(message.getPublishTime().getSeconds(), message.getPublishTime().getNanos()));
                     if (isReloadEnabled()) {
                         LOG.info("Update for GCP secret: {} detected, triggering CamelContext reload", secretId.toString());
                         triggerReloading = true;


[camel] 01/03: CAMEL-18532 - GCP Secret Manager Dev Console: Add to Vault command for camel-jbang

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 3420dd1caa1551b3a8698efc88e7565b1bdef79e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 21 12:25:07 2022 +0200

    CAMEL-18532 - GCP Secret Manager Dev Console: Add to Vault command for camel-jbang
---
 .../component/google/secret/manager/vault/PubsubReloadTriggerTask.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/components/camel-google/camel-google-secret-manager/src/main/java/org/apache/camel/component/google/secret/manager/vault/PubsubReloadTriggerTask.java b/components/camel-google/camel-google-secret-manager/src/main/java/org/apache/camel/component/google/secret/manager/vault/PubsubReloadTriggerTask.java
index aaa71beb0ef..e7a9fae1e03 100644
--- a/components/camel-google/camel-google-secret-manager/src/main/java/org/apache/camel/component/google/secret/manager/vault/PubsubReloadTriggerTask.java
+++ b/components/camel-google/camel-google-secret-manager/src/main/java/org/apache/camel/component/google/secret/manager/vault/PubsubReloadTriggerTask.java
@@ -228,6 +228,8 @@ public class PubsubReloadTriggerTask extends ServiceSupport implements CamelCont
             String eventType = message.getAttributesMap().get("eventType");
             if (eventType.equalsIgnoreCase(SECRET_UPDATE) || eventType.equalsIgnoreCase(SECRET_VERSION_ADD)) {
                 if (matchSecret(secretId)) {
+                	int secretNameBeginInd = secretId.lastIndexOf("/") + 1;
+                	updates.put(secretId.substring(secretNameBeginInd), Instant.ofEpochSecond(message.getPublishTime().getSeconds(), message.getPublishTime().getNanos()));
                     if (isReloadEnabled()) {
                         LOG.info("Update for GCP secret: {} detected, triggering CamelContext reload", secretId.toString());
                         triggerReloading = true;


[camel] 02/03: CAMEL-18532 - GCP Secret Manager Dev Console: Add to Vault command for camel-jbang

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit e965ab93ad4c8a2ec528cbd6016a4679ae261d45
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 21 12:25:49 2022 +0200

    CAMEL-18532 - GCP Secret Manager Dev Console: Add to Vault command for camel-jbang
---
 .../google/secret/manager/vault/PubsubReloadTriggerTask.java          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-google/camel-google-secret-manager/src/main/java/org/apache/camel/component/google/secret/manager/vault/PubsubReloadTriggerTask.java b/components/camel-google/camel-google-secret-manager/src/main/java/org/apache/camel/component/google/secret/manager/vault/PubsubReloadTriggerTask.java
index e7a9fae1e03..debd94ef150 100644
--- a/components/camel-google/camel-google-secret-manager/src/main/java/org/apache/camel/component/google/secret/manager/vault/PubsubReloadTriggerTask.java
+++ b/components/camel-google/camel-google-secret-manager/src/main/java/org/apache/camel/component/google/secret/manager/vault/PubsubReloadTriggerTask.java
@@ -228,8 +228,8 @@ public class PubsubReloadTriggerTask extends ServiceSupport implements CamelCont
             String eventType = message.getAttributesMap().get("eventType");
             if (eventType.equalsIgnoreCase(SECRET_UPDATE) || eventType.equalsIgnoreCase(SECRET_VERSION_ADD)) {
                 if (matchSecret(secretId)) {
-                	int secretNameBeginInd = secretId.lastIndexOf("/") + 1;
-                	updates.put(secretId.substring(secretNameBeginInd), Instant.ofEpochSecond(message.getPublishTime().getSeconds(), message.getPublishTime().getNanos()));
+                    int secretNameBeginInd = secretId.lastIndexOf("/") + 1;
+                    updates.put(secretId.substring(secretNameBeginInd), Instant.ofEpochSecond(message.getPublishTime().getSeconds(), message.getPublishTime().getNanos()));
                     if (isReloadEnabled()) {
                         LOG.info("Update for GCP secret: {} detected, triggering CamelContext reload", secretId.toString());
                         triggerReloading = true;