snat

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultHealingDurationPerNode = time.Minute * 30
View Source
var NumberOfErrorsToleratedThreshold = 10

Functions

func GetHealingPodDefinition

func GetHealingPodDefinition(nodeName string) *corev1.Pod

func NewSnatTask

func NewSnatTask(
	kubernetesService services.KubernetesService,
	metrics metrics.SnatMetrics,
	clock clock.Clock,
) tasks.Task

Types

type NodeHealingState

type NodeHealingState struct {
	HealingStartedAt  time.Time
	NumberOfErrorRuns int
}

func (*NodeHealingState) IsHealingNecessary

func (s *NodeHealingState) IsHealingNecessary(clock clock.Clock) bool

IsHealingNecessary follows the logic that the healing for a node is required until the DefaultHealingDurationPerNode period is reached, after which the node is considered "healed"

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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