bastion

package
v1.52.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ControllerName = "bastion"

ControllerName is the name of this controller.

Variables

View Source
var (
	// ShootPredicate reacts on Shoot events that indicate that we need to garbage collect the Bastion
	ShootPredicate = predicate.Or(predicateutils.IsDeleting(), shootSeedNameChanged)
)

Functions

func MapShootToBastions added in v1.52.0

func MapShootToBastions(ctx context.Context, log logr.Logger, reader client.Reader, obj client.Object) []reconcile.Request

MapShootToBastions is a mapper.MapFunc for mapping shoots to referencing Bastions.

Types

type Reconciler added in v1.52.0

type Reconciler struct {
	Client client.Client
	Config config.BastionControllerConfiguration
	Clock  clock.Clock
}

Reconciler reconciles Bastions.

func (*Reconciler) AddToManager added in v1.52.0

func (r *Reconciler) AddToManager(mgr manager.Manager) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) Reconcile added in v1.52.0

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

Reconcile reacts to updates on Bastion resources and cleans up expired Bastions.

Jump to

Keyboard shortcuts

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