kubernetes

package
v2.19.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: Apache-2.0 Imports: 56 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 = "kubermatic_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,
	etcdBackupRestoreController bool,
	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 GetConfigMapCreators

func GetConfigMapCreators(data *resources.TemplateData) []reconciling.NamedConfigMapCreatorGetter

GetConfigMapCreators returns all ConfigMapCreators that are currently in use

func GetCronJobCreators

func GetCronJobCreators(data *resources.TemplateData) []reconciling.NamedCronJobCreatorGetter

GetCronJobCreators returns all CronJobCreators that are currently in use

func GetDeploymentCreators

func GetDeploymentCreators(data *resources.TemplateData, enableAPIserverOIDCAuthentication bool) []reconciling.NamedDeploymentCreatorGetter

GetDeploymentCreators returns all DeploymentCreators that are currently in use

func GetEtcdBackupConfigCreators added in v2.17.0

func GetEtcdBackupConfigCreators(data *resources.TemplateData) []reconciling.NamedEtcdBackupConfigCreatorGetter

GetEtcdBackupConfigCreators returns all EtcdBackupConfigCreators that are currently in use

func GetPodDisruptionBudgetCreators

func GetPodDisruptionBudgetCreators(data *resources.TemplateData) []reconciling.NamedPodDisruptionBudgetCreatorGetter

GetPodDisruptionBudgetCreators returns all PodDisruptionBudgetCreators that are currently in use

func GetServiceCreators

func GetServiceCreators(data *resources.TemplateData) []reconciling.NamedServiceCreatorGetter

GetServiceCreators returns all service creators that are currently in use

func GetStatefulSetCreators

func GetStatefulSetCreators(data *resources.TemplateData, enableDataCorruptionChecks bool, enableTLSOnly bool) []reconciling.NamedStatefulSetCreatorGetter

GetStatefulSetCreators returns all StatefulSetCreators that are currently in use

Types

type Features

type Features struct {
	VPA                          bool
	EtcdDataCorruptionChecks     bool
	KubernetesOIDCAuthentication bool
	EtcdLauncher                 bool
	Konnectivity                 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) GetSecretCreators

GetSecretCreators returns all SecretCreators 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