shootsecret

package
v1.50.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ControllerName is the name of this controller.
	ControllerName = "shoot-secret-controller"
)

Variables

This section is empty.

Functions

func LabelsPredicate

func LabelsPredicate(labels map[string]string) bool

LabelsPredicate is a function which returns true when the provided labels map suggests that the object is managed by the secrets manager and should be persisted.

func NewReconciler

func NewReconciler(gardenClient, seedClient client.Client, log logrus.FieldLogger) reconcile.Reconciler

NewReconciler returns a new reconciler for secrets related to shoots.

Types

type Controller

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

Controller controls Secret in the seed cluster and persists them in the ShootState resource.

func NewController

func NewController(ctx context.Context,
	gardenClient client.Client,
	seedClientSet kubernetes.Interface,
	log *logrus.Logger,
) (
	*Controller,
	error,
)

NewController creates a new controller for secrets in the seed cluster which must be persisted to the ShootState in the garden cluster.

func (*Controller) Run

func (c *Controller) Run(ctx context.Context, workers int)

Run runs the Controller until the given stop channel can be read from.

Jump to

Keyboard shortcuts

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