seedinit

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: 23 Imported by: 0

Documentation

Overview

Package seedinit contains a controller that is responsible for setting up new Seed clusters. This primarily means installing all related CRDs.

This is not part of the regular seed-operator code, as that one is based on creating watches *inside* the seed clusters, which will fail if no CRDs are available yet. Instead of adding lots of exceptions and corner cases into the seed-operator, this dedicated controller takes over the job. The seed-operator however afterwards keeps the CRDs up-to-date (because it can, as mentioned, watch them for changes).

Index

Constants

View Source
const (
	// This controller is responsible for the initial setup of new Seed clusters.
	ControllerName = "kkp-seed-init-operator"
)

Variables

This section is empty.

Functions

func Add

func Add(
	ctx context.Context,
	log *zap.SugaredLogger,
	namespace string,
	masterManager manager.Manager,
	seedClientGetter provider.SeedClientGetter,
	numWorkers int,
	workerName string,
) error

Types

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

Reconciler (re)stores all components required for running a Kubermatic seed cluster.

func (*Reconciler) Reconcile

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

Reconcile acts upon requests and will restore the state of resources for the given namespace. Will return an error if any API operation failed, otherwise will return an empty dummy Result struct.

Jump to

Keyboard shortcuts

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