diff --git a/pkg/kubelet/cm/devicemanager/manager.go b/pkg/kubelet/cm/devicemanager/manager.go index 886315dd7e8..6c82fbe53d9 100644 --- a/pkg/kubelet/cm/devicemanager/manager.go +++ b/pkg/kubelet/cm/devicemanager/manager.go @@ -188,11 +188,6 @@ func (m *ManagerImpl) removeContents(dir string) error { return nil } -const ( - // kubeletDeviceManagerCheckpoint is the file name of device plugin checkpoint - kubeletDeviceManagerCheckpoint = "kubelet_internal_checkpoint" -) - // checkpointFile returns device plugin checkpoint file path. func (m *ManagerImpl) checkpointFile() string { return filepath.Join(m.socketdir, kubeletDeviceManagerCheckpoint) diff --git a/pkg/kubelet/cm/devicemanager/types.go b/pkg/kubelet/cm/devicemanager/types.go index e1d07ef5fa2..ab9fdbf12ec 100644 --- a/pkg/kubelet/cm/devicemanager/types.go +++ b/pkg/kubelet/cm/devicemanager/types.go @@ -106,3 +106,6 @@ const ( // cache during this grace period to cover the time gap for the capacity change to // take effect. const endpointStopGracePeriod = time.Duration(5) * time.Minute + +// kubeletDeviceManagerCheckpoint is the file name of device plugin checkpoint +const kubeletDeviceManagerCheckpoint = "kubelet_internal_checkpoint"