machinecontrollermanager

package
v1.100.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 42 Imported by: 9

Documentation

Index

Constants

View Source
const (

	// VPAName is the name of the vertical pod autoscaler for the machine-controller-manager.
	VPAName = "machine-controller-manager-vpa"
)

Variables

View Source
var (
	// DefaultInterval is the default interval.
	DefaultInterval = 5 * time.Second
	// DefaultTimeout is the default timeout.
	DefaultTimeout = 5 * time.Minute
)
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 machine-controller-manager logs.

func NewBootstrapper

func NewBootstrapper(client client.Client, namespace string) component.DeployWaiter

NewBootstrapper creates a new instance of DeployWaiter for the machine-controller-manager bootstrapper.

func NewCRD

func NewCRD(client client.Client, applier kubernetes.Applier) component.Deployer

NewCRD can be used to deploy the CRD definitions for the machine-controller-manager.

func ProviderSidecarContainer

func ProviderSidecarContainer(namespace, providerName, image string) corev1.Container

ProviderSidecarContainer returns a corev1.Container object which can be injected into the machine-controller-manager deployment managed by the gardenlet. This function can be used in provider-specific control plane webhook implementations when the standard sidecar container is required.

func ProviderSidecarVPAContainerPolicy

func ProviderSidecarVPAContainerPolicy(providerName string, minAllowed, maxAllowed corev1.ResourceList) vpaautoscalingv1.ContainerResourcePolicy

ProviderSidecarVPAContainerPolicy returns a vpaautoscalingv1.ContainerResourcePolicy object which can be injected into the machine-controller-manager-vpa VPA managed by the gardenlet. This function can be used in provider-specific control plane webhook implementations when the standard container policy for the sidecar is required.

Types

type Interface

type Interface interface {
	component.DeployWaiter
	// SetNamespaceUID sets the UID of the namespace into which the cluster-autoscaler shall be deployed.
	SetNamespaceUID(types.UID)
}

Interface contains functions for a machine-controller-manager deployer.

func New

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

New creates a new instance of DeployWaiter for the machine-controller-manager.

type Values

type Values struct {
	// Image is the container image used for machine-controller-manager.
	Image string
	// Replicas is the number of replicas for the deployment.
	Replicas int32
	// RuntimeKubernetesVersion is the Kubernetes version of the runtime cluster.
	RuntimeKubernetesVersion *semver.Version
	// contains filtered or unexported fields
}

Values is a set of configuration values for the machine-controller-manager component.

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