Merge pull request #69313 from sjenning/crio-socket-update

kubelet: fix cri-o when using unix prefix
pull/58/head
k8s-ci-robot 2018-10-31 11:50:13 -07:00 committed by GitHub
commit ede4388000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}