ignore image_pull.go SA1019 tlsConfig.BuildNameToCertificate is deprecated#1516
ignore image_pull.go SA1019 tlsConfig.BuildNameToCertificate is deprecated#1516mikebrow wants to merge 1 commit intocontainerd:masterfrom mikebrow:remove-deprecation-static-check
Conversation
…cated Signed-off-by: Mike Brown <brownwm@us.ibm.com>
|
/test pull-cri-containerd-node-e2e |
|
Curious; Is there an alternative that would work without ignoring? |
|
@mikebrow: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Nothing that I found. Field NameToCertificate set by BuildNameToCertificate() was deprecated without replacement. IOW it only remembers one name to certificate in the NameToCertificate map.. if you have two.. you get the last one.. seems to be saying... don't call Build.. leave the map nil... and as long as you don't use the map.. the library will do what is needed to pick certificate from certificates... |
|
ugh. I hate deprecated without clear replacement.
not at my keyboard, but will have a look if the commit history provides more context
… On 24 Jun 2020, at 23:36, Mike Brown ***@***.***> wrote:
Curious; Is there an alternative that would work without ignoring?
Nothing that I found. Field NameToCertificate set by BuildNameToCertificate() was deprecated without replacement.
// NameToCertificate maps from a certificate name to an element of
// Certificates. Note that a certificate name can be of the form
// '*.example.com' and so doesn't have to be a domain name as such.
//
// Deprecated: NameToCertificate only allows associating a single
// certificate with a given name. Leave this field nil to let the library
// select the first compatible chain from Certificates.
NameToCertificate map[string]*Certificate
IOW it only remembers one name to certificate in the NameToCertificate map.. if you have two.. you get the last one..
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
yeah have looked through the code.. now. If you don't set NameToCertificate... the library will just loop through all certificates looking for a match, vs doing the match based on the one you set in BuildNameToCertificate() Not sure that is better or worse and would be a behavior change. |
|
Not sure what broke the k8s e2e bucket.. sigh :-) |
|
ok fix for node e2e bucket here: |
|
will just merge this over to the e2e bucket fix yeah I know could've done that here... long day |
Resolves:
let's see... BuildNameToCertificate seems to have been deprecated in go 1.14.. and must've been cherry picked in the linter we are using so..
Signed-off-by: Mike Brown brownwm@us.ibm.com