pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sanjee...@apache.org
Subject [pulsar] branch master updated: Rename id to path for better understanding (#2905)
Date Thu, 01 Nov 2018 23:18:45 GMT
This is an automated email from the ASF dual-hosted git repository.

sanjeevrk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 08d8e25  Rename id to path for better understanding (#2905)
08d8e25 is described below

commit 08d8e252667fd64f5540f72c1144f4cbea855e05
Author: Sanjeev Kulkarni <sanjeevrk@gmail.com>
AuthorDate: Thu Nov 1 16:18:40 2018 -0700

    Rename id to path for better understanding (#2905)
---
 .../KubernetesSecretsProviderConfigurator.java                          | 2 +-
 .../KubernetesSecretsProviderConfiguratorTest.java                      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pulsar-functions/secrets/src/main/java/org/apache/pulsar/functions/secretsproviderconfigurator/KubernetesSecretsProviderConfigurator.java
b/pulsar-functions/secrets/src/main/java/org/apache/pulsar/functions/secretsproviderconfigurator/KubernetesSecretsProviderConfigurator.java
index efefa51..f35a35c 100644
--- a/pulsar-functions/secrets/src/main/java/org/apache/pulsar/functions/secretsproviderconfigurator/KubernetesSecretsProviderConfigurator.java
+++ b/pulsar-functions/secrets/src/main/java/org/apache/pulsar/functions/secretsproviderconfigurator/KubernetesSecretsProviderConfigurator.java
@@ -36,7 +36,7 @@ import java.util.Map;
  * EnvironmentBasedSecretsConfig as the secrets provider who knows how to read these environment
variables
  */
 public class KubernetesSecretsProviderConfigurator implements SecretsProviderConfigurator
{
-    private static String ID_KEY = "id";
+    private static String ID_KEY = "path";
     private static String KEY_KEY = "key";
     @Override
     public String getSecretsProviderClassName(Function.FunctionDetails functionDetails) {
diff --git a/pulsar-functions/secrets/src/test/java/org/apache/pulsar/functions/secretsproviderconfigurator/KubernetesSecretsProviderConfiguratorTest.java
b/pulsar-functions/secrets/src/test/java/org/apache/pulsar/functions/secretsproviderconfigurator/KubernetesSecretsProviderConfiguratorTest.java
index 6d64d5e..b5cbd6a 100644
--- a/pulsar-functions/secrets/src/test/java/org/apache/pulsar/functions/secretsproviderconfigurator/KubernetesSecretsProviderConfiguratorTest.java
+++ b/pulsar-functions/secrets/src/test/java/org/apache/pulsar/functions/secretsproviderconfigurator/KubernetesSecretsProviderConfiguratorTest.java
@@ -51,7 +51,7 @@ public class KubernetesSecretsProviderConfiguratorTest {
         try {
             HashMap<String, Object> map = new HashMap<String, Object>();
             HashMap<String, String> map1 = new HashMap<String, String>();
-            map1.put("id", "secretvalue");
+            map1.put("path", "secretvalue");
             map1.put("key", "secretvalue");
             map.put("secretname", map1);
             provider.validateSecretMap(map);


Mime
View raw message