Browse Source

Merge pull request #691 from erikwilson/early-return-routes

Fix missing early returns on routes
pull/705/head
Erik Wilson 5 years ago committed by GitHub
parent
commit
506d8cdcc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/server/router.go

2
pkg/server/router.go

@ -130,6 +130,7 @@ func servingKubeletCert(server *config.Control) http.Handler {
nodeName, nodePassword, err := getNodeInfo(req)
if err != nil {
sendError(err, resp)
return
}
if err := ensureNodePassword(server.Runtime.NodePasswdFile, nodeName, nodePassword); err != nil {
@ -170,6 +171,7 @@ func clientKubeletCert(server *config.Control) http.Handler {
nodeName, nodePassword, err := getNodeInfo(req)
if err != nil {
sendError(err, resp)
return
}
if err := ensureNodePassword(server.Runtime.NodePasswdFile, nodeName, nodePassword); err != nil {

Loading…
Cancel
Save