podinjectionbackoff

package
v0.0.0-...-4463c60 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerRegistry

type ControllerRegistry struct {
	// contains filtered or unexported fields
}

ControllerRegistry contains backed off controllers to be used in time-based backing off of controllers considered in fake pod injection

func NewFakePodControllerRegistry

func NewFakePodControllerRegistry() *ControllerRegistry

NewFakePodControllerRegistry Creates & returns an instance of fakePodControllerBackoffRegistry

func (*ControllerRegistry) BackOffUntil

func (r *ControllerRegistry) BackOffUntil(uid types.UID, now time.Time) time.Time

BackOffUntil Returns the back off status a controller with id `uid`

func (*ControllerRegistry) BackoffController

func (r *ControllerRegistry) BackoffController(ownerUID types.UID, now time.Time)

BackoffController Backs off a controller If the controller is already in backoff it's backoff time is exponentially increased If the controller was in backoff, it resets its entry and makes it in backoff If the controller is not in backoff and not stored, a new entry is created

Jump to

Keyboard shortcuts

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