-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Refactor out references to global vfs.Context #15640
Conversation
/retest |
1 similar comment
/retest |
/cc @justinsb |
@@ -51,7 +51,7 @@ import ( | |||
|
|||
type Server struct { | |||
opt *config.Options | |||
certNames sets.String | |||
certNames sets.Set[string] |
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.
FYI the thing to be wary of is that this can make it hard to backport (if we need to backport past the apimachinery version that introduced Set[T]), but this should be fine at this point.
server := &http.Server{ | ||
Addr: opt.Server.Listen, | ||
TLSConfig: &tls.Config{ | ||
MinVersion: tls.VersionTLS12, | ||
PreferServerCipherSuites: true, |
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.
Ah, I see PreferServerCipherSuites is deprecated & ignored now.
|
||
var contextKey contextKeyType | ||
|
||
func FromContext(ctx context.Context) *VFSContext { |
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.
Not sure we don't end up reintroducing this, but it's in version control so ....
Thanks @johngmyers /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: justinsb The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
No description provided.