mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 06:02:18 +00:00
Merge pull request #85095 from liggitt/protocol_errors
Plumb configured acceptContentType to client config
This commit is contained in:
@@ -180,6 +180,7 @@ func (o *CloudControllerManagerOptions) ApplyTo(c *cloudcontrollerconfig.Config,
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
c.Kubeconfig.DisableCompression = true
|
c.Kubeconfig.DisableCompression = true
|
||||||
|
c.Kubeconfig.ContentConfig.AcceptContentTypes = o.Generic.ClientConnection.AcceptContentTypes
|
||||||
c.Kubeconfig.ContentConfig.ContentType = o.Generic.ClientConnection.ContentType
|
c.Kubeconfig.ContentConfig.ContentType = o.Generic.ClientConnection.ContentType
|
||||||
c.Kubeconfig.QPS = o.Generic.ClientConnection.QPS
|
c.Kubeconfig.QPS = o.Generic.ClientConnection.QPS
|
||||||
c.Kubeconfig.Burst = int(o.Generic.ClientConnection.Burst)
|
c.Kubeconfig.Burst = int(o.Generic.ClientConnection.Burst)
|
||||||
|
@@ -403,6 +403,7 @@ func (s KubeControllerManagerOptions) Config(allControllers []string, disabledBy
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
kubeconfig.DisableCompression = true
|
kubeconfig.DisableCompression = true
|
||||||
|
kubeconfig.ContentConfig.AcceptContentTypes = s.Generic.ClientConnection.AcceptContentTypes
|
||||||
kubeconfig.ContentConfig.ContentType = s.Generic.ClientConnection.ContentType
|
kubeconfig.ContentConfig.ContentType = s.Generic.ClientConnection.ContentType
|
||||||
kubeconfig.QPS = s.Generic.ClientConnection.QPS
|
kubeconfig.QPS = s.Generic.ClientConnection.QPS
|
||||||
kubeconfig.Burst = int(s.Generic.ClientConnection.Burst)
|
kubeconfig.Burst = int(s.Generic.ClientConnection.Burst)
|
||||||
|
Reference in New Issue
Block a user