Commit 1a2ec1ad authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #41969 from wojtek-t/use_protobufs_for_self_communication_in_apiserver

Automatic merge from submit-queue (batch tested with PRs 41994, 41969, 41997, 40952, 40576) Use protobufs for self-communication @deads2k @liggitt
parents de421716 96250a71
...@@ -130,6 +130,12 @@ func Run(s *options.ServerRunOptions) error { ...@@ -130,6 +130,12 @@ func Run(s *options.ServerRunOptions) error {
return err return err
} }
// Use protobufs for self-communication.
// Since not every generic apiserver has to support protobufs, we
// cannot default to it in generic apiserver and need to explicitly
// set it in kube-apiserver.
genericConfig.LoopbackClientConfig.ContentConfig.ContentType = "application/vnd.kubernetes.protobuf"
capabilities.Initialize(capabilities.Capabilities{ capabilities.Initialize(capabilities.Capabilities{
AllowPrivileged: s.AllowPrivileged, AllowPrivileged: s.AllowPrivileged,
// TODO(vmarmol): Implement support for HostNetworkSources. // TODO(vmarmol): Implement support for HostNetworkSources.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment