kubelet should use the value of the cri container runtime endpoint from cadvisor

This commit is contained in:
Davanum Srinivas
2017-12-11 15:37:12 -05:00
parent 6a633378b3
commit 7b4311e518
2 changed files with 8 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ func (i *imageFsInfoProvider) ImageFsInfoLabel() (string, error) {
// This is a temporary workaround to get stats for cri-o from cadvisor
// and should be removed.
// Related to https://github.com/kubernetes/kubernetes/issues/51798
if i.runtimeEndpoint == "/var/run/crio.sock" {
if i.runtimeEndpoint == CrioSocket {
return cadvisorfs.LabelCrioImages, nil
}
}