mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	fix cri-o when using unix prefix
This commit is contained in:
		@@ -76,5 +76,5 @@ func EphemeralStorageCapacityFromFsInfo(info cadvisorapi2.FsInfo) v1.ResourceLis
 | 
			
		||||
// UsingLegacyCadvisorStats returns true if container stats are provided by cadvisor instead of through the CRI
 | 
			
		||||
func UsingLegacyCadvisorStats(runtime, runtimeEndpoint string) bool {
 | 
			
		||||
	return (runtime == kubetypes.DockerContainerRuntime && goruntime.GOOS == "linux") ||
 | 
			
		||||
		runtimeEndpoint == CrioSocket
 | 
			
		||||
		runtimeEndpoint == CrioSocket || runtimeEndpoint == "unix://"+CrioSocket
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user