mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	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
This commit is contained in:
		@@ -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.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user