-
Notifications
You must be signed in to change notification settings - Fork 38.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
Remove /Validate endpoint #8224
Conversation
@bgrant0607 FYI. |
@@ -501,8 +499,6 @@ func (m *Master) init(c *Config) { | |||
m.mux.HandleFunc("/", apiserver.IndexHandler(m.handlerContainer, m.muxHelper)) | |||
} | |||
|
|||
// TODO: This is now deprecated. Should be removed once client dependencies are gone. | |||
apiserver.InstallValidator(m.muxHelper, func() map[string]apiserver.Server { return m.getServersToValidate(c, 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.
Can you rip out the InstallValidator function as well?
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.
+1
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.
Done.
Thanks. Ref #7092. See also #7775 (comment) |
if len(servers) != 7 { | ||
t.Errorf("unexpected server list: %#v", servers) | ||
} | ||
for _, server := range []string{"scheduler", "controller-manager", "etcd-0", "etcd-1", "etcd-2", "node-0", "node-1"} { |
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.
why is this completely removed? shouldn't just the nodes be removed from the list?
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.
Yes, that is what the code below does (out of frame of the diff). This first chunk validates that the getServersToValidate()flow works with nodes included, which we will no longer support.
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.
gotcha, thanks.
a10ef64
to
2789aff
Compare
// TODO: This endpoint is deprecated and should be removed at some point. | ||
// Use "componentstatus" API instead. | ||
func InstallValidator(mux Mux, servers func() map[string]Server) { | ||
mux.Handle("/validate", NewValidator(servers)) |
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.
Please remove NewValidator
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.
Aaaand its gone. Took down a bunch of other dead code with it.
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.
Changes pushed?
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.
Yes.
LGTM |
This is one step towards fixing #2462. GKE no longer uses the validate endpoint, and its been deprecated for a couple weeks now, so I want to chop it off.