Help us shape the future of Go! Take the 2026 Go Developer Survey

proxy

package
v1.154.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// 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.

func GetLabels added in v1.118.0

func GetLabels() map[string]string

GetLabels returns the default labels for kube-proxy resources.

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
	// 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)
	// SetPodNetworkCIDRs sets the pod CIDRs of the shoot network.
	SetPodNetworkCIDRs([]net.IPNet)
}

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 {
	// ProxyMode defines the kernel module used for the proxy, can be one of ipvs, iptables or nftables.
	ProxyMode gardencore.ProxyMode
	// 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
	// PodNetworkCIDRs are the CIDRs of the pod network. Only relevant when IPVSEnabled is false.
	PodNetworkCIDRs []net.IPNet
	// 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
	// ControlPlane is true for the control plane worker pool of a self-hosted shoot.
	ControlPlane bool
}

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