diff --git a/pkg/kubelet/images/image_gc_manager.go b/pkg/kubelet/images/image_gc_manager.go index 4c6feabb17b..be6689943b3 100644 --- a/pkg/kubelet/images/image_gc_manager.go +++ b/pkg/kubelet/images/image_gc_manager.go @@ -107,8 +107,8 @@ type realImageGCManager struct { // imageCache caches latest result of ListImages. type imageCache struct { - // sync.RWMutex is the mutex protects the image cache. - sync.RWMutex + // sync.Mutex is the mutex protects the image cache. + sync.Mutex // images is the image cache. images []container.Image }