controlplanecontroller

package
v3.0.0-...-d6c4d9c Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 63 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	ControllerName = "kkp-control-plane-controller"
)

Variables

This section is empty.

Functions

func Add

func Add(
	mgr manager.Manager,
	log *zap.SugaredLogger,
	numWorkers int,
	workerName string,
	datacenterGetter provider.DatacenterGetter,
	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

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

GetConfigMapReconcilers returns all ConfigMapReconcilers that are currently in use.

func GetCronJobReconcilers

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

GetCronJobReconcilers returns all CronJobReconcilers that are currently in use.

func GetDeploymentReconcilers

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

GetDeploymentReconcilers returns all DeploymentReconcilers that are currently in use.

func GetPodDisruptionBudgetReconcilers

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

GetPodDisruptionBudgetReconcilers returns all PodDisruptionBudgetReconcilers that are currently in use.

func GetServiceReconcilers

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

GetServiceReconcilers returns all service creators that are currently in use.

func GetStatefulSetReconcilers

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 {
	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

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

func (*Reconciler) GetSecretReconcilers

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