controllers

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MPL-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveAllFinalizers

func RemoveAllFinalizers(ctx context.Context, c client.Client, log logr.Logger) error

RemoveAllFinalizers is responsible for removing all finalizers added by the controller to prevent finalizers from going stale when the controller is being deleted.

Types

type LeaseTruncatedError

type LeaseTruncatedError struct {
	Expected int
	Actual   int
}

LeaseTruncatedError indicates that the requested lease renewal duration is less than expected

func (*LeaseTruncatedError) Error

func (l *LeaseTruncatedError) Error() string

type VaultAuthReconciler

type VaultAuthReconciler struct {
	client.Client
	Scheme        *runtime.Scheme
	Recorder      record.EventRecorder
	ClientFactory vault.CachingClientFactory
}

VaultAuthReconciler reconciles a VaultAuth object

func (*VaultAuthReconciler) Reconcile

func (r *VaultAuthReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile reconciles the secretsv1beta1.VaultAuth resource. Each reconciliation will validate the resource's configuration

Upon deletion of the resource, it will prune all referent Vault Client(s).

func (*VaultAuthReconciler) SetupWithManager

func (r *VaultAuthReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type VaultConnectionReconciler

type VaultConnectionReconciler struct {
	client.Client
	Scheme        *runtime.Scheme
	Recorder      record.EventRecorder
	ClientFactory vault.CachingClientFactory
}

VaultConnectionReconciler reconciles a VaultConnection object

func (*VaultConnectionReconciler) Reconcile

func (r *VaultConnectionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

Reconcile reconciles the secretsv1beta1.VaultConnection resource. Upon a reconciliation it will verify that the configured Vault connection is valid.

Upon deletion of the resource, it will prune all referent Vault Client(s).

func (*VaultConnectionReconciler) SetupWithManager

func (r *VaultConnectionReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type VaultDynamicSecretReconciler

type VaultDynamicSecretReconciler struct {
	client.Client
	Scheme        *runtime.Scheme
	Recorder      record.EventRecorder
	ClientFactory vault.ClientFactory
	HMACValidator vault.HMACValidator
	// contains filtered or unexported fields
}

VaultDynamicSecretReconciler reconciles a VaultDynamicSecret object

func (*VaultDynamicSecretReconciler) Reconcile

Reconcile ensures that the VaultDynamicSecret Custom Resource is synced from Vault to its configured Kubernetes secret. The resource will periodically be reconciled to renew the dynamic secrets lease in Vault. If the renewal fails for any reason then the secret will be re-synced from Vault aka. rotated. If a secret rotation occurs and the resource has RolloutRestartTargets configured, then a request to "rollout restart" the configured Deployment, StatefulSet, ReplicaSet will be made to Kubernetes.

func (*VaultDynamicSecretReconciler) SetupWithManager

func (r *VaultDynamicSecretReconciler) SetupWithManager(mgr ctrl.Manager, opts controller.Options) error

SetupWithManager sets up the controller with the Manager.

type VaultPKISecretReconciler

type VaultPKISecretReconciler struct {
	client.Client
	Scheme        *runtime.Scheme
	ClientFactory vault.ClientFactory
	Recorder      record.EventRecorder
}

VaultPKISecretReconciler reconciles a VaultPKISecret object

func (*VaultPKISecretReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. It compares the state specified by the VaultPKISecret object against the actual cluster state, and then performs operations to make the cluster state reflect the state specified by the user.

func (*VaultPKISecretReconciler) SetupWithManager

func (r *VaultPKISecretReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type VaultStaticSecretReconciler

type VaultStaticSecretReconciler struct {
	client.Client
	Scheme        *runtime.Scheme
	Recorder      record.EventRecorder
	ClientFactory vault.ClientFactory
	HMACValidator vault.HMACValidator
}

VaultStaticSecretReconciler reconciles a VaultStaticSecret object

func (*VaultStaticSecretReconciler) Reconcile

func (*VaultStaticSecretReconciler) SetupWithManager

func (r *VaultStaticSecretReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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