-
Notifications
You must be signed in to change notification settings - Fork 857
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
Feat: support addon helm repo skip tls verify (#4122) #4146
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4146 +/- ##
==========================================
+ Coverage 61.39% 61.45% +0.05%
==========================================
Files 347 347
Lines 34239 34249 +10
==========================================
+ Hits 21021 21047 +26
+ Misses 10465 10457 -8
+ Partials 2753 2745 -8
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
pkg/utils/common/common.go
Outdated
if opts.InsecureSkipTls { | ||
resp, err = insecureHTTPClient.Do(req) | ||
} else { | ||
resp, err = http.DefaultClient.Do(req) |
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.
bodyclose: response body must be closed
Reply with "@sonatype-lift help" for more info.
Reply with "@sonatype-lift ignore" to tell Liftbot to leave out the above finding from this PR.
Reply with "@sonatype-lift ignoreall" to tell Liftbot to leave out all the findings from this PR and from the status bar in Github.
When talking to Liftbot, you need to refresh the page to see its response. Click here to get to know more about Liftbot commands.
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
pkg/utils/common/common.go
Outdated
resp, err := http.DefaultClient.Do(req) | ||
var resp *http.Response | ||
if opts.InsecureSkipTls { | ||
resp, err = insecureHTTPClient.Do(req) |
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.
bodyclose: response body must be closed
Reply with "@sonatype-lift help" for more info.
Reply with "@sonatype-lift ignore" to tell Liftbot to leave out the above finding from this PR.
Reply with "@sonatype-lift ignoreall" to tell Liftbot to leave out all the findings from this PR and from the status bar in Github.
When talking to Liftbot, you need to refresh the page to see its response. Click here to get to know more about Liftbot commands.
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
This pull request introduces 1 alert when merging e57ba5a into 6eca997 - view on LGTM.com new alerts:
|
pkg/addon/cache.go
Outdated
Password: r.Helm.Password, | ||
Username: r.Helm.Username, | ||
Password: r.Helm.Password, | ||
InsecureSkipTls: r.Helm.InsecureSkipTls, |
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.
typecheck: r.Helm.InsecureSkipTls undefined (type *HelmSource has no field or method InsecureSkipTls)
Reply with "@sonatype-lift help" for more info.
Reply with "@sonatype-lift ignore" to tell Liftbot to leave out the above finding from this PR.
Reply with "@sonatype-lift ignoreall" to tell Liftbot to leave out all the findings from this PR and from the status bar in Github.
When talking to Liftbot, you need to refresh the page to see its response. Click here to get to know more about Liftbot commands.
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
pkg/addon/utils.go
Outdated
Password: registry.Helm.Password, | ||
Username: registry.Helm.Username, | ||
Password: registry.Helm.Password, | ||
InsecureSkipTls: registry.Helm.InsecureSkipTls, |
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.
typecheck: registry.Helm.InsecureSkipTls undefined (type *HelmSource has no field or method InsecureSkipTls)
Reply with "@sonatype-lift help" for more info.
Reply with "@sonatype-lift ignore" to tell Liftbot to leave out the above finding from this PR.
Reply with "@sonatype-lift ignoreall" to tell Liftbot to leave out all the findings from this PR and from the status bar in Github.
When talking to Liftbot, you need to refresh the page to see its response. Click here to get to know more about Liftbot commands.
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
This pull request introduces 1 alert when merging f183cc3 into 6eca997 - view on LGTM.com new alerts:
|
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
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.
Good job! Please fix the CI first.
This pull request introduces 1 alert when merging d9a7235 into f978519 - view on LGTM.com new alerts:
|
Please sign the dco. |
This pull request introduces 1 alert when merging 15bb082 into 27ec48b - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 61e987f into 6ed041c - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 958b9c8 into 6ed041c - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging b971dd3 into e572235 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging dd85529 into e572235 - view on LGTM.com new alerts:
|
@TIEDPAG Any progress about this pr? |
ping @TIEDPAG Hi, conflicts should be resolved, otherwise we cannot merge your PR. |
@wangyikewxgm @charlie0129 Are you sure that this pr will be merged? I see it seems that another pr has done the problem |
You mean this one #4322 ? It seems to me that they solve different problems. Yes, your PR is still needed. cc @wangyikewxgm for details |
ok, I'll deal with it |
Signed-off-by: damianqin <damianqin@tiedpag.club>
Signed-off-by: damianqin <damianqin@tiedpag.club>
Signed-off-by: damianqin <damianqin@tiedpag.club>
Signed-off-by: damianqin <damianqin@tiedpag.club>
Signed-off-by: damianqin <damianqin@tiedpag.club>
Signed-off-by: damianqin <damianqin@tiedpag.club>
Signed-off-by: damianqin <damianqin@tiedpag.club>
Great! Please run |
Signed-off-by: damianqin <damianqin@tiedpag.club>
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
@TIEDPAG Hi, sorry there are conflicts again. Would you please take a look at it? |
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
@charlie0129 ok |
@TIEDPAG I've merged the conflicts. I'll merge this PR after CI passed |
@wonderflow ok |
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
Description of your changes
Fixes #4122
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR if necessary.How has this code been tested
add test case using ginkgo
Special notes for your reviewer