kubernetes

package
v2.25.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 66 Imported by: 0

Documentation

Overview

Package kubernetes contains a controller that reconciles all controlplane components in the seed needed for Kubernetes clusters.

Index

Constants

View Source
const (
	ControllerName = "kkp-kubernetes-controller"
)

Variables

This section is empty.

Functions

func Add

func Add(
	mgr manager.Manager,
	log *zap.SugaredLogger,
	numWorkers int,
	workerName string,
	externalURL string,
	seedGetter provider.SeedGetter,
	configGetter provider.KubermaticConfigurationGetter,
	userClusterConnProvider userClusterConnectionProvider,
	overwriteRegistry string,
	nodeAccessNetwork string,
	etcdDiskSize resource.Quantity,
	userClusterMLAEnabled bool,
	dockerPullConfigJSON []byte,
	concurrentClusterUpdates int,
	backupSchedule time.Duration,

	oidcIssuerURL string,
	oidcIssuerClientID string,
	kubermaticImage string,
	etcdLauncherImage string,
	dnatControllerImage string,
	machineControllerImageTag string,
	machineControllerImageRepository string,
	tunnelingAgentIP string,
	caBundle *certificates.CABundle,

	features Features,
	versions kubermatic.Versions,
) error

NewController creates a cluster controller.

func GetConfigMapReconcilers added in v2.22.0

func GetConfigMapReconcilers(data *resources.TemplateData) []reconciling.NamedConfigMapReconcilerFactory

GetConfigMapReconcilers returns all ConfigMapReconcilers that are currently in use.

func GetCronJobReconcilers added in v2.22.0

func GetCronJobReconcilers(data *resources.TemplateData) []reconciling.NamedCronJobReconcilerFactory

GetCronJobReconcilers returns all CronJobReconcilers that are currently in use.

func GetDeploymentReconcilers added in v2.22.0

func GetDeploymentReconcilers(data *resources.TemplateData, enableAPIserverOIDCAuthentication bool, versions kubermatic.Versions) []reconciling.NamedDeploymentReconcilerFactory

GetDeploymentReconcilers returns all DeploymentReconcilers that are currently in use.

func GetEtcdBackupConfigReconcilers added in v2.22.0

GetEtcdBackupConfigReconcilers returns all EtcdBackupConfigReconcilers that are currently in use.

func GetPodDisruptionBudgetReconcilers added in v2.22.0

func GetPodDisruptionBudgetReconcilers(data *resources.TemplateData) []reconciling.NamedPodDisruptionBudgetReconcilerFactory

GetPodDisruptionBudgetReconcilers returns all PodDisruptionBudgetReconcilers that are currently in use.

func GetServiceReconcilers added in v2.22.0

func GetServiceReconcilers(data *resources.TemplateData) []reconciling.NamedServiceReconcilerFactory

GetServiceReconcilers returns all service creators that are currently in use.

func GetStatefulSetReconcilers added in v2.22.0

func GetStatefulSetReconcilers(data *resources.TemplateData, enableDataCorruptionChecks bool, enableTLSOnly bool) []reconciling.NamedStatefulSetReconcilerFactory

GetStatefulSetReconcilers returns all StatefulSetReconcilers that are currently in use.

Types

type Features

type Features struct {
	VPA                          bool
	EtcdDataCorruptionChecks     bool
	KubernetesOIDCAuthentication bool
	EtcdLauncher                 bool
}

type Reconciler

type Reconciler struct {
	ctrlruntimeclient.Client
	// contains filtered or unexported fields
}

Reconciler is a controller which is responsible for managing clusters.

func (*Reconciler) AddFinalizers added in v2.17.1

func (r *Reconciler) AddFinalizers(ctx context.Context, cluster *kubermaticv1.Cluster, finalizers ...string) (*reconcile.Result, error)

func (*Reconciler) GetSecretReconcilers added in v2.22.0

GetSecretReconcilers returns all SecretReconcilers that are currently in use.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Jump to

Keyboard shortcuts

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