Documentation ¶
Index ¶
- Constants
- Variables
- func CentralLoggingConfiguration() (component.CentralLoggingConfig, error)
- func NewAccess(client client.Client, namespace string, ...) component.Deployer
- func NewBootstrapper(client client.Client, namespace string, values BootstrapperValues) component.DeployWaiter
- type AccessValues
- type BootstrapperValues
- type ProberConfigurationFunc
- type Role
- type WeederConfigurationFunc
Constants ¶
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 ¶
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 WeederConfigurationFunc ¶
type WeederConfigurationFunc func() (map[string]weederapi.DependantSelectors, error)
WeederConfigurationFunc is a function alias for returning configuration for the dependency-watchdog (weeder role).