deletedmarkerstore

package
v0.0.0-...-bc30bd0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Name commonstore.StoreName = "DeletedMarkerStore"
View Source
const PodMarkerExpirationPeriod = 600 * time.Second

Variables

This section is empty.

Functions

func NewCacheDeletedMarkerStore

func NewCacheDeletedMarkerStore(handler commoncache.CacheHandler) commonstore.Store

func NewSnapshotDeletedMarkerStore

func NewSnapshotDeletedMarkerStore(handler commoncache.CacheHandler) commonstore.Store

Types

type DeletedMarkerStore

type DeletedMarkerStore struct {
	commonstore.BaseStore

	Store map[string]*markInfo
	// contains filtered or unexported fields
}

func (*DeletedMarkerStore) AddPod

func (dms *DeletedMarkerStore) AddPod(pod *v1.Pod) error

func (*DeletedMarkerStore) CleanupPodDeletionMarker

func (dms *DeletedMarkerStore) CleanupPodDeletionMarker(mu *sync.RWMutex, now time.Time)

func (*DeletedMarkerStore) DeletePod

func (dms *DeletedMarkerStore) DeletePod(pod *v1.Pod) error

func (*DeletedMarkerStore) IsPodMarkedToDelete

func (dms *DeletedMarkerStore) IsPodMarkedToDelete(pod *v1.Pod) (bool, error)

func (*DeletedMarkerStore) MarkPodToDelete

func (dms *DeletedMarkerStore) MarkPodToDelete(pod, preemptor *v1.Pod) error

func (*DeletedMarkerStore) Name

func (*DeletedMarkerStore) PeriodWorker

func (dms *DeletedMarkerStore) PeriodWorker(mu *sync.RWMutex)

func (*DeletedMarkerStore) RemoveDeletePodMarker

func (dms *DeletedMarkerStore) RemoveDeletePodMarker(pod, preemptor *v1.Pod) error

func (*DeletedMarkerStore) RemoveDeletePodMarkerByKey

func (dms *DeletedMarkerStore) RemoveDeletePodMarkerByKey(podKey, preemptorKey string) error

func (*DeletedMarkerStore) UpdatePod

func (dms *DeletedMarkerStore) UpdatePod(oldPod *v1.Pod, newPod *v1.Pod) error

func (*DeletedMarkerStore) UpdateSnapshot

func (dms *DeletedMarkerStore) UpdateSnapshot(_ commonstore.Store) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL