mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Allow remote runtimes to pass apparmor host validation
This commit is contained in:
		@@ -111,8 +111,8 @@ func validateHost(runtime string) error {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Check runtime support. Currently only Docker is supported.
 | 
						// Check runtime support. Currently only Docker is supported.
 | 
				
			||||||
	if runtime != "docker" {
 | 
						if runtime != "docker" && runtime != "remote" {
 | 
				
			||||||
		return fmt.Errorf("AppArmor is only enabled for 'docker' runtime. Found: %q.", runtime)
 | 
							return fmt.Errorf("AppArmor is only enabled for 'docker' and 'remote' runtimes. Found: %q.", runtime)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return nil
 | 
						return nil
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user