dependencywatchdog

package
v1.57.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExternalProbeSecretName is the name of the kubecfg secret with internal DNS for external access.
	ExternalProbeSecretName = gutil.SecretNamePrefixShootAccess + "dependency-watchdog-external-probe"
	// InternalProbeSecretName is the name of the kubecfg secret with cluster IP access.
	InternalProbeSecretName = gutil.SecretNamePrefixShootAccess + "dependency-watchdog-internal-probe"
)
View Source
const (
	// RoleEndpoint is a constant for the 'endpoint' role of the dependency-watchdog.
	RoleEndpoint Role = "endpoint"
	// RoleProbe is a constant for the 'probe' role of the dependency-watchdog.
	RoleProbe Role = "probe"

	// ManagedResourceDependencyWatchdogEndpoint is the name of the dependency-watchdog-endpoint managed resource.
	ManagedResourceDependencyWatchdogEndpoint = "dependency-watchdog-endpoint"
	// ManagedResourceDependencyWatchdogProbe is the name of the dependency-watchdog-probe managed resource.
	ManagedResourceDependencyWatchdogProbe = "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 added in v1.38.0

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 added in v1.38.0

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 added in v1.38.0

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 added in v1.38.0

type BootstrapperValues struct {
	Role Role
	ValuesEndpoint
	ValuesProbe
	Image string
}

BootstrapperValues contains dependency-watchdog values.

type EndpointConfigurationFunc

type EndpointConfigurationFunc func() (map[string]restarterapi.Service, error)

EndpointConfigurationFunc is a function alias for returning configuration for the dependency-watchdog (endpoint role).

type ProbeConfigurationFunc

type ProbeConfigurationFunc func() ([]scalerapi.ProbeDependants, error)

ProbeConfigurationFunc is a function alias for returning configuration for the dependency-watchdog (probe role).

type Role

type Role string

Role is a string alias type.

type ValuesEndpoint

type ValuesEndpoint struct {
	ServiceDependants restarterapi.ServiceDependants
}

ValuesEndpoint contains the service dependants of dependency-watchdog.

type ValuesProbe

type ValuesProbe struct {
	ProbeDependantsList scalerapi.ProbeDependantsList
}

ValuesProbe contains the probe dependants list of dependency-watchdog.

Jump to

Keyboard shortcuts

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