updatecontroller

package
v2.25.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package updatecontroller contains a controller that coordinates the upgrade of clusters. It watches the cluster.Spec.Version and will initiate the controlled update of first the apiserver, then the rest of the control plane and finally nodes. It does so by manipulating the ClusterStatus, letting other controller take care of reconciling the cluster namespace or updating/watching the nodes in the user cluster.

Index

Constants

View Source
const (
	ControllerName = "kkp-update-controller"

	ClusterConditionUpToDate    = "UpToDate"
	ClusterConditionProgressing = "Progressing"
	ClusterConditionOldNodes    = "OldNodes"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, numWorkers int, workerName string, configGetter provider.KubermaticConfigurationGetter, log *zap.SugaredLogger, versions kubermatic.Versions) error

Add creates a new update controller.

Types

type Reconciler

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

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