components

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MemoryAvailable is a constant for the 'memory.available' eviction setting.
	MemoryAvailable = "memory.available"
	// ImageFSAvailable is a constant for the 'imagefs.available' eviction setting.
	ImageFSAvailable = "imagefs.available"
	// ImageFSInodesFree is a constant for the 'imagefs.inodesFree' eviction setting.
	ImageFSInodesFree = "imagefs.inodesFree"
	// NodeFSAvailable is a constant for the 'nodefs.available' eviction setting.
	NodeFSAvailable = "nodefs.available"
	// NodeFSInodesFree is a constant for the 'nodefs.inodesFree' eviction setting.
	NodeFSInodesFree = "nodefs.inodesFree"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component interface {
	// Name returns the name of the component.
	Name() string
	// Config takes a configuration context and returns units and files.
	Config(Context) ([]extensionsv1alpha1.Unit, []extensionsv1alpha1.File, error)
}

Component is an interface which can be implemented by operating system config components.

type ConfigurableKubeletCLIFlags

type ConfigurableKubeletCLIFlags struct {
	ImagePullProgressDeadline *metav1.Duration
}

ConfigurableKubeletCLIFlags is the set of configurable kubelet command line parameters.

func KubeletCLIFlagsFromCoreV1beta1KubeletConfig

func KubeletCLIFlagsFromCoreV1beta1KubeletConfig(kubeletConfig *gardencorev1beta1.KubeletConfig) ConfigurableKubeletCLIFlags

KubeletCLIFlagsFromCoreV1beta1KubeletConfig computes the ConfigurableKubeletCLIFlags based on the provided gardencorev1beta1.KubeletConfig.

type ConfigurableKubeletConfigParameters

type ConfigurableKubeletConfigParameters struct {
	CpuCFSQuota                      *bool
	CpuManagerPolicy                 *string
	EvictionHard                     map[string]string
	EvictionMinimumReclaim           map[string]string
	EvictionSoft                     map[string]string
	EvictionSoftGracePeriod          map[string]string
	EvictionPressureTransitionPeriod *metav1.Duration
	EvictionMaxPodGracePeriod        *int32
	FailSwapOn                       *bool
	FeatureGates                     map[string]bool
	ImageGCHighThresholdPercent      *int32
	ImageGCLowThresholdPercent       *int32
	KubeReserved                     map[string]string
	MaxPods                          *int32
	PodPidsLimit                     *int64
	SystemReserved                   map[string]string
}

ConfigurableKubeletConfigParameters is the set of configurable kubelet config parameters.

func KubeletConfigParametersFromCoreV1beta1KubeletConfig

func KubeletConfigParametersFromCoreV1beta1KubeletConfig(kubeletConfig *gardencorev1beta1.KubeletConfig) ConfigurableKubeletConfigParameters

KubeletConfigParametersFromCoreV1beta1KubeletConfig computes the ConfigurableKubeletConfigParameters based on the provided gardencorev1beta1.KubeletConfig.

type Context

type Context struct {
	CABundle                *string
	ClusterDNSAddress       string
	ClusterDomain           string
	CRIName                 extensionsv1alpha1.CRIName
	Images                  map[string]*imagevector.Image
	KubeletCACertificate    string
	KubeletCLIFlags         ConfigurableKubeletCLIFlags
	KubeletConfigParameters ConfigurableKubeletConfigParameters
	KubeletDataVolumeName   *string
	KubernetesVersion       *semver.Version
	SSHPublicKeys           []string
	LokiIngress             string
	PromtailRBACAuthToken   string
}

Context contains configuration for the components.

Directories

Path Synopsis
mock
Package kubelet is a generated GoMock package.
Package kubelet is a generated GoMock package.
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