secrets

package
v1.105.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "seed-secrets"

ControllerName is the name of this controller.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	Client          client.Client
	GardenNamespace string
}

Reconciler reconciles Seeds and creates a dedicated namespace for each seed in the garden cluster. It also syncs relevant garden secrets into this namespace.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(ctx context.Context, mgr manager.Manager) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) GardenSecretPredicate

func (r *Reconciler) GardenSecretPredicate() predicate.Predicate

GardenSecretPredicate returns true for all events when the respective secret is in the garden namespace and has a gardener.cloud/role label.

func (*Reconciler) MapToAllSeeds

func (r *Reconciler) MapToAllSeeds(ctx context.Context, log logr.Logger, reader client.Reader, _ client.Object) []reconcile.Request

MapToAllSeeds returns reconcile.Request objects for all existing seeds in the system.

func (*Reconciler) Reconcile

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

Reconcile reconciles Seeds and creates a dedicated namespace for each seed in the garden cluster. It also syncs relevant garden secrets into this namespace.

func (*Reconciler) SecretPredicate

func (r *Reconciler) SecretPredicate() predicate.Predicate

SecretPredicate returns true for all events. For 'UPDATE' events, it only returns true when the secret has changed.

Jump to

Keyboard shortcuts

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