dependencywatchdog

package
v1.74.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 35 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
	// ExternalProbeSecretName is the name of the kubecfg secret with internal DNS for external access.
	ExternalProbeSecretName = gardenerutils.SecretNamePrefixShootAccess + "dependency-watchdog-external-probe"
	// InternalProbeSecretName is the name of the kubecfg secret with cluster IP access.
	InternalProbeSecretName = gardenerutils.SecretNamePrefixShootAccess + "dependency-watchdog-internal-probe"
)
View Source
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"

	// ManagedResourceDependencyWatchdogWeeder is the name of the dependency-watchdog-weeder managed resource.
	ManagedResourceDependencyWatchdogWeeder = prefixDependencyWatchdog + "-weeder"
	// ManagedResourceDependencyWatchdogProber is the name of the dependency-watchdog-prober managed resource.
	ManagedResourceDependencyWatchdogProber = prefixDependencyWatchdog + "-prober"

	// ManagedResourceDependencyWatchdogEndpoint is the name of the dependency-watchdog-endpoint managed resource. This resource is cleaned up now.
	ManagedResourceDependencyWatchdogEndpoint = prefixDependencyWatchdog + "-endpoint"
	// ManagedResourceDependencyWatchdogProbe is the name of the dependency-watchdog-probe managed resource. This resource is cleaned up now.
	ManagedResourceDependencyWatchdogProbe = prefixDependencyWatchdog + "-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 {
	// ServerOutOfCluster is the out-of-cluster address of a kube-apiserver.
	ServerOutOfCluster string
	// 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.

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