tokeninvalidator

package
v1.63.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "token-invalidator"

ControllerName is the name of the controller.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler added in v1.59.0

type Reconciler struct {
	TargetClient client.Client
	TargetReader client.Reader
	Config       config.TokenInvalidatorControllerConfig

	// RateLimiter allows limiting exponential backoff for testing purposes
	RateLimiter ratelimiter.RateLimiter
}

Reconciler labels secrets whose tokens should be invalidated.

func (*Reconciler) AddToManager added in v1.59.0

func (r *Reconciler) AddToManager(mgr manager.Manager, targetCluster cluster.Cluster) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) MapServiceAccountToSecrets added in v1.59.0

func (r *Reconciler) MapServiceAccountToSecrets(_ context.Context, _ logr.Logger, _ client.Reader, obj client.Object) []reconcile.Request

MapServiceAccountToSecrets maps the ServiceAccount to all referenced secrets.

func (*Reconciler) Reconcile added in v1.59.0

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

Reconcile labels secrets whose tokens should be invalidated.

func (*Reconciler) SecretPredicate added in v1.59.0

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

SecretPredicate returns the predicate for secrets.

func (*Reconciler) ServiceAccountPredicate added in v1.59.0

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

ServiceAccountPredicate returns the predicate for service accounts.

Jump to

Keyboard shortcuts

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