jerrypeng commented on a change in pull request #8098:
URL: https://github.com/apache/pulsar/pull/8098#discussion_r492890528



##########
File path: 
pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdFunctions.java
##########
@@ -627,6 +627,8 @@ protected void validateFunctionConfigs(FunctionConfig 
functionConfig) {
         protected Integer instanceIdOffset = 0;
         @Parameter(names = "--runtime", description = "either THREAD or 
PROCESS. Only applies for Java functions")
         protected String runtime;
+        @Parameter(names = "--environment-based-secrets-provider", description 
= "Should we use environment based secret provider")

Review comment:
       I think there is already too arguments for the CLI.  Lets try to create 
something more generic.  Instead of creating an argument for a specific 
provider, can we create an argument to allow users to specify the secret 
provider type?  In the future, if we add more providers, I don't want to keep 
add one-of arguments.  For example, can we create a enum?
   
   Enum SecretsProviderType {
   ENV,
   DEFAULT,
   ...
   }
   
   based on the enum determine




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to