config

package
v0.22.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const GroupName = "shoot-networking-problemdetector.extensions.config.gardener.cloud"

GroupName is the group name use in this package

Variables

View Source
var (
	// SchemeBuilder used to register the Shoot resource.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a pointer to SchemeBuilder.AddToScheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Configuration

type Configuration struct {
	metav1.TypeMeta

	// NetworkProblemDetector contains the configuration for the network problem detector
	NetworkProblemDetector *NetworkProblemDetector

	// HealthCheckConfig is the config for the health check controller.
	HealthCheckConfig *healthcheckconfig.HealthCheckConfig
}

Configuration contains information about the network problem detector configuration.

func (*Configuration) DeepCopy

func (in *Configuration) DeepCopy() *Configuration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Configuration.

func (*Configuration) DeepCopyInto

func (in *Configuration) DeepCopyInto(out *Configuration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Configuration) DeepCopyObject

func (in *Configuration) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type K8sExporter

type K8sExporter struct {
	// Enabled if true, the K8s exporter is active
	Enabled bool
	// HeartbeatPeriod defines the update frequency of the node conditions.
	HeartbeatPeriod *metav1.Duration
	// MinFailingPeerNodeShare if > 0, reports node conditions `ClusterNetworkProblems` or `HostNetworkProblems` for node checks only if minimum share of destination peer nodes are failing. Valid range: [0.0,1.0]
	MinFailingPeerNodeShare *float64
}

K8sExporter contains information for the K8s exporter which patches the node conditions periodically if enabled.

func (*K8sExporter) DeepCopy

func (in *K8sExporter) DeepCopy() *K8sExporter

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sExporter.

func (*K8sExporter) DeepCopyInto

func (in *K8sExporter) DeepCopyInto(out *K8sExporter)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NetworkProblemDetector

type NetworkProblemDetector struct {
	// DefaultPeriod optionally overrides the default period for jobs running in the agent.
	DefaultPeriod *metav1.Duration

	// MaxPeerNodes optionally overrides the MaxPeerNodes in the agent config (maximum number of is the default period for jobs running in the agent.
	MaxPeerNodes *int

	// PingEnabled is a flag if ICMP ping checks should be performed.
	PingEnabled *bool

	// K8sExporter configures the K8s exporter for updating node conditions and creating events.
	K8sExporter *K8sExporter
}

NetworkProblemDetector contains the configuration for the network problem detector.

func (*NetworkProblemDetector) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkProblemDetector.

func (*NetworkProblemDetector) DeepCopyInto

func (in *NetworkProblemDetector) DeepCopyInto(out *NetworkProblemDetector)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Directories

Path Synopsis
Package v1alpha1 contains the shoot networking filter extension configuration.
Package v1alpha1 contains the shoot networking filter extension configuration.

Jump to

Keyboard shortcuts

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