Documentation ¶
Index ¶
- Constants
- type Reconciler
- func (r *Reconciler) AddToManager(ctx context.Context, mgr manager.Manager) error
- func (r *Reconciler) GardenSecretPredicate() predicate.Predicate
- func (r *Reconciler) MapToAllSeeds(ctx context.Context, log logr.Logger, reader client.Reader, _ client.Object) []reconcile.Request
- func (r *Reconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)
- func (r *Reconciler) SecretPredicate() predicate.Predicate
Constants ¶
const ControllerName = "seed-secrets"
ControllerName is the name of this controller.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
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 ¶
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.