Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHealingDurationPerNode = time.Minute * 30
View Source
var NumberOfErrorsToleratedThreshold = 10
Functions ¶
func GetHealingPodDefinition ¶
func NewSnatTask ¶
func NewSnatTask( kubernetesService services.KubernetesService, metrics metrics.SnatMetrics, clock clock.Clock, ) tasks.Task
Types ¶
type NodeHealingState ¶
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"
Click to show internal directories.
Click to hide internal directories.