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/10/03 08:22:55 UTC
[camel-kamelets-examples] 04/06: GCP Secrets Reloading: Use application.properties instead of custom name
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-kamelets-examples.git
commit 086b1c6d6d1935f42106c3d3aaf89acfbf9c8f47
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Oct 3 10:08:16 2023 +0200
GCP Secrets Reloading: Use application.properties instead of custom name
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
jbang/gcp-secret-manager-reloading/README.adoc | 8 ++++----
jbang/gcp-secret-manager-reloading/gcp-sec-integration.properties | 7 -------
2 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/jbang/gcp-secret-manager-reloading/README.adoc b/jbang/gcp-secret-manager-reloading/README.adoc
index 71fc4ba..3eb17c5 100644
--- a/jbang/gcp-secret-manager-reloading/README.adoc
+++ b/jbang/gcp-secret-manager-reloading/README.adoc
@@ -125,7 +125,7 @@ echo -n "Camel rocks! " | gcloud secrets versions add hello --data-file=- --proj
=== Setting up the GCP Service account key
-In the gcp-sec-integration.propertie you'll need to provide all the needed bits and the path to the just created service account key file. So you should have something like this:
+In the application.properties you'll need to provide all the needed bits and the path to the just created service account key file. So you should have something like this:
[source,sh]
----
@@ -144,7 +144,7 @@ Then you can run this example using:
[source,sh]
----
-$ camel run --properties=gcp-sec-integration.properties timer-gcp-secret-reloading.yaml
+$ camel run timer-gcp-secret-reloading.yaml
----
Or run it even shorter:
@@ -158,7 +158,7 @@ Or run with JBang using the longer command line (without installing camel as app
[source,sh]
----
-$ jbang camel@apache/camel run --properties=gcp-sec-integration.properties timer-gcp-secret-reloading.yaml
+$ jbang camel@apache/camel run timer-gcp-secret-reloading.yaml
----
@@ -195,7 +195,7 @@ You can enable the developer console via `--console` flag as show:
[source,sh]
----
-$ camel run --properties=gcp-sec-integration.properties timer-gcp-secret-reloading.yaml --console
+$ camel run timer-gcp-secret-reloading.yaml --console
----
Then you can browse: http://localhost:8080/q/dev to introspect the running Camel applicaton.
diff --git a/jbang/gcp-secret-manager-reloading/gcp-sec-integration.properties b/jbang/gcp-secret-manager-reloading/gcp-sec-integration.properties
deleted file mode 100644
index d032695..0000000
--- a/jbang/gcp-secret-manager-reloading/gcp-sec-integration.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-camel.vault.gcp.projectId=sec-gcp-123
-camel.vault.gcp.serviceAccountKey = <service_account_key>
-camel.vault.gcp.refreshEnabled=true
-camel.vault.gcp.refreshPeriod=60000
-camel.vault.gcp.secrets=hello*
-camel.vault.gcp.subscriptionName=sub-gcp-sec-refresh
-camel.main.name = GCPExample