controllers

package
v0.0.0-...-e950fe4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OperatorAppName is the name of the operator
	OperatorAppName = "vaultsecret-operator"
	// TimeFormat is the time format to indicate last updated field
	TimeFormat = "2006-01-02_15-04-05"
	// MinTimeMsBetweenSecretUpdate avoid a secret to be updated too often
	MinTimeMsBetweenSecretUpdate = time.Millisecond * 500
)

Variables

View Source
var (

	// LabelsFilter filters events on labels
	LabelsFilter map[string]string
)

Functions

func AddLabelFilter

func AddLabelFilter(key, value string)

AddLabelFilter adds a label for filtering events

Types

type VaultSecretReconciler

type VaultSecretReconciler struct {
	client.Client
	Log          logr.Logger
	Scheme       *runtime.Scheme
	LabelsFilter map[string]string
}

VaultSecretReconciler reconciles a VaultSecret object

func (*VaultSecretReconciler) Reconcile

func (r *VaultSecretReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile reads that state of the cluster for a VaultSecret object and makes changes based on the state read and what is in the VaultSecret.Spec The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

func (*VaultSecretReconciler) SetupWithManager

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

SetupWithManager godoc

Jump to

Keyboard shortcuts

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