dependencywatchdog

package
v1.96.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultProbeInterval is the default value of interval between two probes by DWD prober
	DefaultProbeInterval = 30 * time.Second
	// DefaultWatchDuration is the default value of the total duration for which a DWD Weeder watches for any dependant Pod to transition to CrashLoopBackoff after the target service has recovered.
	DefaultWatchDuration = 5 * time.Minute
	// KubeConfigSecretName is the name of the kubecfg secret with internal DNS for external access.
	KubeConfigSecretName = gardenerutils.SecretNamePrefixShootAccess + "dependency-watchdog-probe"
)

Variables

View Source
var TimeoutWaitForManagedResource = 2 * time.Minute

TimeoutWaitForManagedResource is the timeout used while waiting for the ManagedResources to become healthy or deleted.

Functions

func CentralLoggingConfiguration

func CentralLoggingConfiguration() (component.CentralLoggingConfig, error)

CentralLoggingConfiguration returns a fluent-bit parser and filter for the dependency-watchdog logs.

func NewAccess

func NewAccess(
	client client.Client,
	namespace string,
	secretsManager secretsmanager.Interface,
	values AccessValues,
) component.Deployer

NewAccess creates a new instance of the deployer for shoot cluster access for the dependency-watchdog.

func NewBootstrapper

func NewBootstrapper(
	client client.Client,
	namespace string,
	values BootstrapperValues,
) component.DeployWaiter

NewBootstrapper creates a new instance of DeployWaiter for the dependency-watchdog.

Types

type AccessValues

type AccessValues struct {
	// ServerInCluster is the in-cluster address of a kube-apiserver.
	ServerInCluster string
}

AccessValues contains configurations for the component.

type BootstrapperValues

type BootstrapperValues struct {
	// Role defines which dependency-watchdog controller i.e. weeder or prober.
	Role Role
	// WeederConfig is the Config for the weeder Role.
	WeederConfig weederapi.Config
	// ProberConfig is the Config for the prober Role.
	ProberConfig proberapi.Config
	// Image is the container image used for DependencyWatchdog.
	Image string
	// KubernetesVersion is the Kubernetes version of the Seed.
	KubernetesVersion *semver.Version
}

BootstrapperValues contains dependency-watchdog values.

type ProberConfigurationFunc

type ProberConfigurationFunc func() ([]proberapi.DependentResourceInfo, error)

ProberConfigurationFunc is a function alias for returning configuration for the dependency-watchdog (prober role).

type Role

type Role string

Role is a string alias type.

const (
	// RoleWeeder is a constant for the 'weeder' role of the dependency-watchdog.
	RoleWeeder Role = "weeder"
	// RoleProber is a constant for the 'prober' role of the dependency-watchdog.
	RoleProber Role = "prober"
)

type WeederConfigurationFunc

type WeederConfigurationFunc func() (map[string]weederapi.DependantSelectors, error)

WeederConfigurationFunc is a function alias for returning configuration for the dependency-watchdog (weeder role).

Jump to

Keyboard shortcuts

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