mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
move the const to the place it should be
This commit is contained in:
parent
a7d788d91f
commit
55921d0827
@ -188,11 +188,6 @@ func (m *ManagerImpl) removeContents(dir string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
|
||||||
// kubeletDeviceManagerCheckpoint is the file name of device plugin checkpoint
|
|
||||||
kubeletDeviceManagerCheckpoint = "kubelet_internal_checkpoint"
|
|
||||||
)
|
|
||||||
|
|
||||||
// checkpointFile returns device plugin checkpoint file path.
|
// checkpointFile returns device plugin checkpoint file path.
|
||||||
func (m *ManagerImpl) checkpointFile() string {
|
func (m *ManagerImpl) checkpointFile() string {
|
||||||
return filepath.Join(m.socketdir, kubeletDeviceManagerCheckpoint)
|
return filepath.Join(m.socketdir, kubeletDeviceManagerCheckpoint)
|
||||||
|
@ -106,3 +106,6 @@ const (
|
|||||||
// cache during this grace period to cover the time gap for the capacity change to
|
// cache during this grace period to cover the time gap for the capacity change to
|
||||||
// take effect.
|
// take effect.
|
||||||
const endpointStopGracePeriod = time.Duration(5) * time.Minute
|
const endpointStopGracePeriod = time.Duration(5) * time.Minute
|
||||||
|
|
||||||
|
// kubeletDeviceManagerCheckpoint is the file name of device plugin checkpoint
|
||||||
|
const kubeletDeviceManagerCheckpoint = "kubelet_internal_checkpoint"
|
||||||
|
Loading…
Reference in New Issue
Block a user