mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Do not go into standalone mode when --require-kubeconfig is passed (fix #32085)
				
					
				
			This commit is contained in:
		@@ -298,7 +298,7 @@ func initConfigz(kc *componentconfig.KubeletConfiguration) (*configz.Config, err
 | 
			
		||||
 | 
			
		||||
func run(s *options.KubeletServer, kubeDeps *kubelet.KubeletDeps) (err error) {
 | 
			
		||||
	// TODO: this should be replaced by a --standalone flag
 | 
			
		||||
	standaloneMode := (len(s.APIServerList) == 0)
 | 
			
		||||
	standaloneMode := (len(s.APIServerList) == 0 && !s.RequireKubeConfig)
 | 
			
		||||
 | 
			
		||||
	if s.ExitOnLockContention && s.LockFilePath == "" {
 | 
			
		||||
		return errors.New("cannot exit on lock file contention: no lock file specified")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user