mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +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 {
|
func (m *Master) Run(myAddress, apiPrefix string) error {
|
||||||
s := &http.Server{
|
s := &http.Server{
|
||||||
Addr: myAddress,
|
Addr: myAddress,
|
||||||
Handler: apiserver.New(m.storage, apiPrefix),
|
Handler: m.ConstructHandler(apiPrefix),
|
||||||
ReadTimeout: 10 * time.Second,
|
ReadTimeout: 10 * time.Second,
|
||||||
WriteTimeout: 10 * time.Second,
|
WriteTimeout: 10 * time.Second,
|
||||||
MaxHeaderBytes: 1 << 20,
|
MaxHeaderBytes: 1 << 20,
|
||||||
|
Loading…
Reference in New Issue
Block a user