mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
dedupe apiserver.New
This commit is contained in:
parent
afa686ccc8
commit
c8e1c6a02f
@ -128,7 +128,7 @@ func (m *Master) init(cloud cloudprovider.Interface, podInfoGetter client.PodInf
|
||||
func (m *Master) Run(myAddress, apiPrefix string) error {
|
||||
s := &http.Server{
|
||||
Addr: myAddress,
|
||||
Handler: apiserver.New(m.storage, apiPrefix),
|
||||
Handler: m.ConstructHandler(apiPrefix),
|
||||
ReadTimeout: 10 * time.Second,
|
||||
WriteTimeout: 10 * time.Second,
|
||||
MaxHeaderBytes: 1 << 20,
|
||||
|
Loading…
Reference in New Issue
Block a user