Commit 50b9a93
authored
[fix][fn] TLS args admin download command use zero arity (#20513)
### Motivation
#20482 broke the function download command with this error:
```
Expected a command, got false
Usage: pulsar-admin [options] [command] [command options]
Options:
--admin-url
Admin Service URL to which to connect.
Default: http://localhost:8080/
```
The problem is that the TLS args for hostname verification and for insecure TLS are zero arity, and therefore, we should not add the `false` or the `true` arguments.
### Modifications
* Correct the changes made to the TLS args passed to the `pulsar-admin` CLI tool
### Documentation
- [x] `doc-not-needed`1 parent 0a39b81 commit 50b9a93
2 files changed
Lines changed: 7 additions & 8 deletions
File tree
- pulsar-functions/runtime/src
- main/java/org/apache/pulsar/functions/runtime/kubernetes
- test/java/org/apache/pulsar/functions/runtime/kubernetes
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
893 | 894 | | |
894 | 895 | | |
895 | 896 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
852 | 852 | | |
853 | 853 | | |
854 | 854 | | |
855 | | - | |
856 | 855 | | |
857 | 856 | | |
858 | 857 | | |
| |||
879 | 878 | | |
880 | 879 | | |
881 | 880 | | |
882 | | - | |
883 | 881 | | |
884 | 882 | | |
885 | 883 | | |
| |||
909 | 907 | | |
910 | 908 | | |
911 | 909 | | |
912 | | - | |
| 910 | + | |
913 | 911 | | |
914 | 912 | | |
915 | 913 | | |
| |||
0 commit comments