mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Use cAdvisor constant for crio imagefs
This commit is contained in:
parent
db809c0eb7
commit
cf2c688385
@ -40,9 +40,8 @@ func (i *imageFsInfoProvider) ImageFsInfoLabel() (string, error) {
|
||||
case "rkt":
|
||||
return cadvisorfs.LabelRktImages, nil
|
||||
case "remote":
|
||||
// TODO: pending rebase including https://github.com/google/cadvisor/pull/1741
|
||||
if i.runtimeEndpoint == "/var/run/crio.sock" {
|
||||
return "crio-images", nil
|
||||
return cadvisorfs.LabelCrioImages, nil
|
||||
}
|
||||
}
|
||||
return "", fmt.Errorf("no imagefs label for configured runtime")
|
||||
|
Loading…
Reference in New Issue
Block a user