dependencywatchdog

package
v1.93.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 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
	// KubeConfigSecretName is the name of the kubecfg secret with internal DNS for external access.
	KubeConfigSecretName = gardenerutils.SecretNamePrefixShootAccess + "dependency-watchdog-probe"

	// 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"
)

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 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 Interface

type Interface interface {
	component.Deployer
	DeployMigrate(ctx context.Context) error
}

Interface exposes methods for deploying dependency-watchdog.

func NewAccess

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

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

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