Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCManager ¶
type GCManager interface { Start(ctx context.Context) error GetPodDatabase() PodDBer TriggerGCAll() Health() }
func NewGCManager ¶
func NewGCManager(ctx context.Context, clientSet *kubernetes.Clientset, config *GarbageCollectionConfig, wepManager workloadendpointmanager.WorkloadEndpointManager, ippoolManager ippoolmanager.IPPoolManager, podManager podmanager.PodManager, stsManager statefulsetmanager.StatefulSetManager, spiderControllerLeader election.SpiderLeaseElector) (GCManager, error)
type GarbageCollectionConfig ¶
type GarbageCollectionConfig struct { EnableGCIP bool EnableGCForTerminatingPod bool EnableStatefulSet bool ReleaseIPWorkerNum int GCIPChannelBuffer int MaxPodEntryDatabaseCap int DefaultGCIntervalDuration int TracePodGapDuration int GCSignalTimeoutDuration int GCSignalGapDuration int AdditionalGraceDelay int }
type PodDBer ¶
type PodDBer interface { DeletePodEntry(namespace, podName string) ApplyPodEntry(podEntry *PodEntry) error ListAllPodEntries() []PodEntry }
func NewPodDBer ¶
type PodDatabase ¶
PodDatabase represents controller PodEntry database
func (*PodDatabase) ApplyPodEntry ¶
func (p *PodDatabase) ApplyPodEntry(podEntry *PodEntry) error
func (*PodDatabase) DeletePodEntry ¶
func (p *PodDatabase) DeletePodEntry(namespace, podName string)
func (*PodDatabase) ListAllPodEntries ¶
func (p *PodDatabase) ListAllPodEntries() []PodEntry
type PodEntry ¶
type PodEntry struct { PodName string Namespace string NodeName string EntryUpdateTime time.Time TracingStartTime time.Time TracingGracefulTime time.Duration TracingStopTime time.Time PodTracingReason types.PodStatus }
PodEntry represents a pod cache
type SpiderGC ¶
type SpiderGC struct { PodDB PodDBer // contains filtered or unexported fields }
func (*SpiderGC) GetPodDatabase ¶
func (*SpiderGC) TriggerGCAll ¶
func (s *SpiderGC) TriggerGCAll()
Click to show internal directories.
Click to hide internal directories.