mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 05:02:50 +00:00
Fix proxy error condition and simplify method
Add new minion proxy test case.
This commit is contained in:
@@ -75,7 +75,7 @@ func New(storage map[string]RESTStorage, prefix string) *APIServer {
|
||||
s.mux.HandleFunc(s.operationPrefix()+"/", s.handleOperation)
|
||||
|
||||
// Proxy minion requests
|
||||
s.mux.HandleFunc("/proxy/minion/", s.handleProxyMinion)
|
||||
s.mux.Handle("/proxy/minion/", http.StripPrefix("/proxy/minion", http.HandlerFunc(handleProxyMinion)))
|
||||
|
||||
return s
|
||||
}
|
||||
|
Reference in New Issue
Block a user