-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix][fn] Support customizing TLS config for function download command #20482
[fix][fn] Support customizing TLS config for function download command #20482
Conversation
Codecov Report
@@ Coverage Diff @@
## master #20482 +/- ##
============================================
+ Coverage 72.59% 72.94% +0.34%
- Complexity 31719 31907 +188
============================================
Files 1867 1867
Lines 138523 138529 +6
Branches 15204 15205 +1
============================================
+ Hits 100555 101044 +489
+ Misses 29955 29469 -486
- Partials 8013 8016 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Although, I don't think such a new feature should be picked to any previous versions.
May or may not we loose the rule for 3.0 the LTS version, but at least not for 2.9 which is end of life.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry. I notice that it respects existing passed values instead of new options. Then it's reasonable to pick, while still may not for 2.9 (and 2.10?) which is EOL.
Merging... |
I haven't seen us declare 2.9 EOL, and the PIP 47 that would indicate that it is EOL hasn't really been followed. I'm going to cherry pick it, and then if it gets released, it's there. |
Looks like it doesn't apply cleanly. I'll have to investigate cherry picking it a bit more. |
### 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`
### 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` (cherry picked from commit 50b9a93)
### Motivation This PR is a combination of #20482 and #20513 because cherry picking those PRs produced too many conflicts. ### Modifications * Made the same addition as the source PRs, though the code has changed a bit, so I had to make a few extra changes. ### Documentation - [x] `doc-not-needed` (cherry picked from commit 8c9c6e9)
### Motivation This PR is a combination of #20482 and #20513 because cherry picking those PRs produced too many conflicts. ### Modifications * Made the same addition as the source PRs, though the code has changed a bit, so I had to make a few extra changes. ### Documentation - [x] `doc-not-needed` (cherry picked from commit 8c9c6e9)
apache#20482) (cherry picked from commit ceed19c)
### Motivation apache#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` (cherry picked from commit 50b9a93)
As discussed on the mailing list https://lists.apache.org/thread/w4jzk27qhtosgsz7l9bmhf1t7o9mxjhp, there is no plan to release 2.9.6, so I am going to remove the release/2.9.6 label |
Motivation
We support configuring custom TLS trusted certs when running functions, but not when downloading them. This PR fixes that by mapping the configuration in the same way we do with functions:
pulsar/pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/RuntimeUtils.java
Lines 425 to 434 in f04252b
Modifications
Verifying this change
I added a new test.
Documentation
doc-not-needed