controller

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SecretSantaFinalizer   = "secrets.secret-santa.io/finalizer"
	MaxGeneratorConfigSize = 1024 * 1024 // 1MB
)

Variables

This section is empty.

Functions

func NewGeneratorTimer

func NewGeneratorTimer(generatorType string) *prometheus.Timer

func NewReconcileTimer

func NewReconcileTimer(name, namespace string) *prometheus.Timer

Production metrics wrapper functions

func RecordGeneratorExecution

func RecordGeneratorExecution(generatorType, status string)

func RecordReconcileComplete

func RecordReconcileComplete(name, namespace string, duration float64)

func RecordReconcileError

func RecordReconcileError(name, namespace string)

func RecordSecretSkipped

func RecordSecretSkipped(name, namespace string)

func RecordSuccessfulGeneration added in v0.3.0

func RecordSuccessfulGeneration(name, namespace string)

func RecordTemplateValidationFailed added in v0.3.0

func RecordTemplateValidationFailed(name, namespace string)

func UpdateSecretInstances

func UpdateSecretInstances(name, namespace string, count float64)

Types

type SecretSantaReconciler

type SecretSantaReconciler struct {
	client.Client
	Scheme             *runtime.Scheme
	IncludeAnnotations []string
	ExcludeAnnotations []string
	IncludeLabels      []string
	ExcludeLabels      []string
	DryRun             bool
	EnableMetadata     bool
}

func (*SecretSantaReconciler) Reconcile

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

func (*SecretSantaReconciler) SetupWithManager

func (r *SecretSantaReconciler) SetupWithManager(mgr ctrl.Manager, maxConcurrentReconciles int) error

Jump to

Keyboard shortcuts

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