Commit cf2c6883 authored by Derek Carr's avatar Derek Carr

Use cAdvisor constant for crio imagefs

parent db809c0e
...@@ -40,9 +40,8 @@ func (i *imageFsInfoProvider) ImageFsInfoLabel() (string, error) { ...@@ -40,9 +40,8 @@ func (i *imageFsInfoProvider) ImageFsInfoLabel() (string, error) {
case "rkt": case "rkt":
return cadvisorfs.LabelRktImages, nil return cadvisorfs.LabelRktImages, nil
case "remote": case "remote":
// TODO: pending rebase including https://github.com/google/cadvisor/pull/1741
if i.runtimeEndpoint == "/var/run/crio.sock" { if i.runtimeEndpoint == "/var/run/crio.sock" {
return "crio-images", nil return cadvisorfs.LabelCrioImages, nil
} }
} }
return "", fmt.Errorf("no imagefs label for configured runtime") return "", fmt.Errorf("no imagefs label for configured runtime")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment