Skip to content

Commit cf06a2e

Browse files
authored
Merge pull request kubernetes#85095 from liggitt/protocol_errors
Plumb configured acceptContentType to client config
2 parents e008523 + 1cac745 commit cf06a2e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cmd/cloud-controller-manager/app/options/options.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ func (o *CloudControllerManagerOptions) ApplyTo(c *cloudcontrollerconfig.Config,
180180
return err
181181
}
182182
c.Kubeconfig.DisableCompression = true
183+
c.Kubeconfig.ContentConfig.AcceptContentTypes = o.Generic.ClientConnection.AcceptContentTypes
183184
c.Kubeconfig.ContentConfig.ContentType = o.Generic.ClientConnection.ContentType
184185
c.Kubeconfig.QPS = o.Generic.ClientConnection.QPS
185186
c.Kubeconfig.Burst = int(o.Generic.ClientConnection.Burst)

cmd/kube-controller-manager/app/options/options.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ func (s KubeControllerManagerOptions) Config(allControllers []string, disabledBy
403403
return nil, err
404404
}
405405
kubeconfig.DisableCompression = true
406+
kubeconfig.ContentConfig.AcceptContentTypes = s.Generic.ClientConnection.AcceptContentTypes
406407
kubeconfig.ContentConfig.ContentType = s.Generic.ClientConnection.ContentType
407408
kubeconfig.QPS = s.Generic.ClientConnection.QPS
408409
kubeconfig.Burst = int(s.Generic.ClientConnection.Burst)

0 commit comments

Comments
 (0)