-
Notifications
You must be signed in to change notification settings - Fork 39.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
Start deprecation process for StreamingProxyRedirects #88290
Conversation
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.
Thanks for the pr :)
I'm convinced this PR does the work outlined in your KEP. Thanks for such a clearly written KEP :)
LGTM modulo the test failures... feel free to ping me once the test failures are fixed and I will add the lgtm label again.
/lgtm
@@ -156,7 +159,7 @@ func init() { | |||
// To add a new feature, define a key for it above and add it here. The features will be | |||
// available throughout Kubernetes binaries. | |||
var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{ | |||
StreamingProxyRedirects: {Default: true, PreRelease: featuregate.Beta}, | |||
StreamingProxyRedirects: {Default: true, PreRelease: featuregate.Deprecated}, | |||
ValidateProxyRedirects: {Default: true, PreRelease: featuregate.Beta}, |
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.
Just to confirm I'm understanding the KEP - do we ever intend to mark ValidateProxyRedirects
as deprecated? Or as that unnecessary because its only utilized in conjunction with StreamingProxyRedirects
, and we are marking StreamingProxyRedirects
as deprecated (so when the time comes, we can just delete StreamingProxyRedirects
)?
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 question, I was thinking about it a bit more when writing this change. The original KEP moved ValidateProxyRedirects to GA first, but folks thought that was weird since it would then be deleted. It might be more appropriate to mark it as deprecated, since it's going away, but I don't want people to see "oh this is deprecated, I should disable it", since it's dangerous to disable it before removing streaming proxy redirects.
I'm thinking of just leaving it as Beta, and marking it as deprecated once the behavior is removed (the feature gate can be removed a few releases after that). WDYT?
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.
That rationale makes sense to me! Mind capturing what yousaid above either in the KEP, commit message, or PR body? Or even a comment?
Thanks :)
/retest Review the full test history for this PR. Silence the bot with an |
9eec946
to
98ad741
Compare
Ah, I forgot to update the copy of the feature in the core package. Tests should pass now (hopefully). |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tallclair 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 |
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
What type of PR is this?
/kind deprecation
What this PR does / why we need it:
Implements the first stage of the StreamingProxyRedirects deprecation, simply marking the feature & flag as deprecated. See https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/20191205-container-streaming-requests.md#rollout-plan
Which issue(s) this PR fixes:
For kubernetes/enhancements#1558
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
/sig node
/assign @Random-Liu @derekwaynecarr