proxy

package
v1.92.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DaemonSetNamePrefix is the prefix for the names of the kube-proxy DaemonSets.
	DaemonSetNamePrefix = "kube-proxy"
	// ConfigNamePrefix is the prefix for the name of the kube-proxy ConfigMap.
	ConfigNamePrefix = "kube-proxy-config"
)

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 kube-proxy logs.

Types

type ConfigCodec

type ConfigCodec interface {
	// Encode encodes the given *kubeproxyconfigv1alpha1.KubeProxyConfiguration into a string.
	Encode(*kubeproxyconfigv1alpha1.KubeProxyConfiguration) (string, error)
	// Decode decodes a *kubeproxyconfigv1alpha1.KubeProxyConfiguration from the given string.
	Decode(string) (*kubeproxyconfigv1alpha1.KubeProxyConfiguration, error)
}

ConfigCodec contains methods for encoding and decoding *kubeproxyconfigv1alpha1.KubeProxyConfiguration objects to and from string.

func NewConfigCodec

func NewConfigCodec() ConfigCodec

NewConfigCodec creates an returns a new ConfigCodec.

type Interface

type Interface interface {
	component.DeployWaiter
	component.MonitoringComponent
	// DeleteStaleResources deletes no longer required ManagedResource from the shoot namespace in the seed.
	DeleteStaleResources(context.Context) error
	// WaitCleanupStaleResources waits until all no longer required ManagedResource are cleaned up.
	WaitCleanupStaleResources(context.Context) error
	// SetKubeconfig sets the Kubeconfig field in the Values.
	SetKubeconfig([]byte)
	// SetWorkerPools sets the WorkerPools field in the Values.
	SetWorkerPools([]WorkerPool)
}

Interface is an interface for managing kube-proxy DaemonSets.

func New

func New(
	client client.Client,
	namespace string,
	values Values,
) Interface

New creates a new instance of DeployWaiter for kube-proxy.

type Values

type Values struct {
	// IPVSEnabled states whether IPVS is enabled.
	IPVSEnabled bool
	// FeatureGates is the set of feature gates.
	FeatureGates map[string]bool
	// ImageAlpine is the alpine container image.
	ImageAlpine string
	// Kubeconfig is the kubeconfig which should be used to communicate with the kube-apiserver.
	Kubeconfig []byte
	// PodNetworkCIDR is the CIDR of the pod network. Only relevant when IPVSEnabled is false.
	PodNetworkCIDR *string
	// VPAEnabled states whether VerticalPodAutoscaler is enabled.
	VPAEnabled bool
	// WorkerPools is a list of worker pools for which the kube-proxy DaemonSets should be deployed.
	WorkerPools []WorkerPool
}

Values is a set of configuration values for the kube-proxy component.

type WorkerPool

type WorkerPool struct {
	// Name is the name of the worker pool.
	Name string
	// KubernetesVersion is the Kubernetes version of the worker pool.
	KubernetesVersion *semver.Version
	// Image is the container image used for kube-proxy for this worker pool.
	Image string
}

WorkerPool contains configuration for the kube-proxy deployment for this specific worker pool.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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