secret

package
v0.2.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: 13 Imported by: 0

Documentation

Overview

Package secret implements the Secret in-use protection controller. It runs in the main falco operator (Deployment) and ensures that Secrets referenced by Rulesfile or Plugin artifact resources via spec.ociArtifact.registry.auth.secretRef cannot be deleted until all references are cleared.

Index

Constants

View Source
const ControllerName = "secret-in-use-finalizer"

ControllerName is the name of the Secret controller. It is also used as the field manager name for finalizer updates.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretReconciler

type SecretReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

SecretReconciler protects Secrets that are referenced by Rulesfile or Plugin resources via spec.ociArtifact.registry.auth.secretRef.

func NewSecretReconciler

func NewSecretReconciler(cl client.Client, scheme *runtime.Scheme) *SecretReconciler

NewSecretReconciler returns a new SecretReconciler.

func (*SecretReconciler) Reconcile

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

Reconcile ensures the in-use finalizer is present on referenced Secrets and absent otherwise.

func (*SecretReconciler) SetupWithManager

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

SetupWithManager registers the controller with the Manager.

Jump to

Keyboard shortcuts

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