cooldown

package
v1.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultCoolDownPeriod = time.Second * 60
	MinimalCoolDownPeriod = time.Second * 30
)

Variables

This section is empty.

Functions

func GetVpcCniConfigMapCoolDownPeriodOrDefault

func GetVpcCniConfigMapCoolDownPeriodOrDefault(k8sApi k8s.K8sWrapper, log logr.Logger) (time.Duration, error)

func InitCoolDownPeriod

func InitCoolDownPeriod(k8sApi k8s.K8sWrapper, log logr.Logger)

Initialize coolDown period by setting the value in configmap or to default

Types

type CoolDown

type CoolDown interface {
	GetCoolDownPeriod() time.Duration
	SetCoolDownPeriod(time.Duration)
}

func GetCoolDown

func GetCoolDown() CoolDown

Jump to

Keyboard shortcuts

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