controller

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretReconciler

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

SecretReconciler implements the reconciliation logic for Lockbox secrets.

func NewSecretReconciler

func NewSecretReconciler(pubKey, priKey nacl.Key, options ...SecretReconcilerOption) *SecretReconciler

NewSecretReconciler creates a reconciler controller for the provided keypair and options.

If not mutated by any options, the reconciler uses a noop API client and events recorder.

func (*SecretReconciler) Reconcile

Reconcile implements reconcile.Reconciler by ensuring Lockbox controlled Secrets are as described.

type SecretReconcilerOption

type SecretReconcilerOption func(s *SecretReconciler)

SecretReconcilerOption allows for functional options to modify the SecretReconciler

func WithClient

func WithClient(c client.Client) SecretReconcilerOption

WithClient sets the API Client used by the SecretReconciler

func WithRecorder

WithRecorder sets the EventRecorder used by the SecretReconciler.

Jump to

Keyboard shortcuts

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