This is an automated email from the ASF dual-hosted git repository.
zhaocong pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-3.3 by this push:
new 0771f818ba7 [fix][cli] Remove defaultValue of tenant/namespace for
CmdFunctions (#22764)
0771f818ba7 is described below
commit 0771f818ba74f94b95cd0987997079d0f3e73f94
Author: Cong Zhao <[email protected]>
AuthorDate: Thu May 23 16:51:00 2024 +0800
[fix][cli] Remove defaultValue of tenant/namespace for CmdFunctions (#22764)
(cherry picked from commit 951eb518f7792f42df6bb343784ab5ae2f8bf32d)
---
.../java/org/apache/pulsar/admin/cli/CmdFunctions.java | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git
a/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdFunctions.java
b/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdFunctions.java
index 5e80c168d92..4c7e058af6d 100644
---
a/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdFunctions.java
+++
b/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdFunctions.java
@@ -100,12 +100,10 @@ public class CmdFunctions extends CmdBase {
*/
@Getter
abstract class NamespaceCommand extends BaseCommand {
- @Option(names = "--tenant", description = "The tenant of a Pulsar
Function",
- defaultValue = PUBLIC_TENANT)
+ @Option(names = "--tenant", description = "The tenant of a Pulsar
Function")
protected String tenant;
- @Option(names = "--namespace", description = "The namespace of a
Pulsar Function",
- defaultValue = DEFAULT_NAMESPACE)
+ @Option(names = "--namespace", description = "The namespace of a
Pulsar Function")
protected String namespace;
}
@@ -117,12 +115,10 @@ public class CmdFunctions extends CmdBase {
@Option(names = "--fqfn", description = "The Fully Qualified Function
Name (FQFN) for the function")
protected String fqfn;
- @Option(names = "--tenant", description = "The tenant of a Pulsar
Function",
- defaultValue = PUBLIC_TENANT)
+ @Option(names = "--tenant", description = "The tenant of a Pulsar
Function")
protected String tenant;
- @Option(names = "--namespace", description = "The namespace of a
Pulsar Function",
- defaultValue = DEFAULT_NAMESPACE)
+ @Option(names = "--namespace", description = "The namespace of a
Pulsar Function")
protected String namespace;
@Option(names = "--name", description = "The name of a Pulsar
Function")
@@ -170,11 +166,9 @@ public class CmdFunctions extends CmdBase {
@Option(names = "--fqfn", description = "The Fully Qualified Function
Name (FQFN) for the function"
+ " #Java, Python")
protected String fqfn;
- @Option(names = "--tenant", description = "The tenant of a Pulsar
Function #Java, Python, Go",
- defaultValue = PUBLIC_TENANT)
+ @Option(names = "--tenant", description = "The tenant of a Pulsar
Function #Java, Python, Go")
protected String tenant;
- @Option(names = "--namespace", description = "The namespace of a
Pulsar Function #Java, Python, Go",
- defaultValue = DEFAULT_NAMESPACE)
+ @Option(names = "--namespace", description = "The namespace of a
Pulsar Function #Java, Python, Go")
protected String namespace;
@Option(names = "--name", description = "The name of a Pulsar Function
#Java, Python, Go")
protected String functionName;