v1alpha1

package
v0.26.0 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains the shoot networking filter extension configuration. +groupName=shoot-networking-problemdetector.extensions.config.gardener.cloud

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 (

	// AddToScheme is a pointer to SchemeBuilder.AddToScheme.
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_config_Configuration_To_v1alpha1_Configuration

func Convert_config_Configuration_To_v1alpha1_Configuration(in *config.Configuration, out *Configuration, s conversion.Scope) error

Convert_config_Configuration_To_v1alpha1_Configuration is an autogenerated conversion function.

func Convert_config_K8sExporter_To_v1alpha1_K8sExporter

func Convert_config_K8sExporter_To_v1alpha1_K8sExporter(in *config.K8sExporter, out *K8sExporter, s conversion.Scope) error

Convert_config_K8sExporter_To_v1alpha1_K8sExporter is an autogenerated conversion function.

func Convert_config_NetworkProblemDetector_To_v1alpha1_NetworkProblemDetector

func Convert_config_NetworkProblemDetector_To_v1alpha1_NetworkProblemDetector(in *config.NetworkProblemDetector, out *NetworkProblemDetector, s conversion.Scope) error

Convert_config_NetworkProblemDetector_To_v1alpha1_NetworkProblemDetector is an autogenerated conversion function.

func Convert_v1alpha1_Configuration_To_config_Configuration

func Convert_v1alpha1_Configuration_To_config_Configuration(in *Configuration, out *config.Configuration, s conversion.Scope) error

Convert_v1alpha1_Configuration_To_config_Configuration is an autogenerated conversion function.

func Convert_v1alpha1_K8sExporter_To_config_K8sExporter

func Convert_v1alpha1_K8sExporter_To_config_K8sExporter(in *K8sExporter, out *config.K8sExporter, s conversion.Scope) error

Convert_v1alpha1_K8sExporter_To_config_K8sExporter is an autogenerated conversion function.

func Convert_v1alpha1_NetworkProblemDetector_To_config_NetworkProblemDetector

func Convert_v1alpha1_NetworkProblemDetector_To_config_NetworkProblemDetector(in *NetworkProblemDetector, out *config.NetworkProblemDetector, s conversion.Scope) error

Convert_v1alpha1_NetworkProblemDetector_To_config_NetworkProblemDetector is an autogenerated conversion function.

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func SetDefaults_Configuration

func SetDefaults_Configuration(obj *Configuration)

SetDefaults_Configuration sets default values for Configuration objects.

func SetObjectDefaults_Configuration

func SetObjectDefaults_Configuration(in *Configuration)

Types

type Configuration

type Configuration struct {
	metav1.TypeMeta `json:",inline"`

	// NetworkProblemDetector contains the configuration for the network problem detector
	// +optional
	NetworkProblemDetector *NetworkProblemDetector `json:"networkProblemDetector,omitempty"`

	// HealthCheckConfig is the config for the health check controller.
	// +optional
	HealthCheckConfig *healthcheckconfigv1alpha1.HealthCheckConfig `json:"healthCheckConfig,omitempty"`
}

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 `json:"enabled"`
	// HeartbeatPeriod defines the update frequency of the node conditions.
	// +optional
	HeartbeatPeriod *metav1.Duration `json:"heartbeatPeriod,omitempty"`
	// 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]
	// +optional
	MinFailingPeerNodeShare *float64 `json:"minFailingPeerNodeShare,omitempty"`
}

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.
	// +optional
	DefaultPeriod *metav1.Duration `json:"defaultPeriod,omitempty"`

	// MaxPeerNodes optionally overrides the MaxPeerNodes in the agent config (maximum number of is the default period for jobs running in the agent.
	// +optional
	MaxPeerNodes *int `json:"maxPeerNodes,omitempty"`

	// PingEnabled is a flag if ICMP ping checks should be performed.
	// +optional
	PingEnabled *bool `json:"pingEnabled,omitempty"`

	// K8sExporter configures the K8s exporter for updating node conditions and creating events.
	// +optional
	K8sExporter *K8sExporter `json:"k8sExporter,omitempty"`
}

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.

Jump to

Keyboard shortcuts

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