configmap

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 configmap implements the ConfigMap in-use protection controller. It runs in the main falco operator (Deployment) and ensures that ConfigMaps referenced by Rulesfile or Config artifact resources cannot be deleted until all references are cleared.

Package configmap implements the reference protection controller for ConfigMaps. It ensures ConfigMaps referenced by artifact resources cannot be deleted until all references are cleared.

Index

Constants

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

ControllerName is the name of the ConfigMap in-use finalizer controller. It is used in log messages and as the field manager when updating finalizers.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapReconciler

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

ConfigMapReconciler protects ConfigMaps that are referenced by Rulesfile or Config resources.

func NewConfigMapReconciler

func NewConfigMapReconciler(cl client.Client, scheme *runtime.Scheme) *ConfigMapReconciler

NewConfigMapReconciler returns a new ConfigMapReconciler.

func (*ConfigMapReconciler) Reconcile

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

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

func (*ConfigMapReconciler) SetupWithManager

func (r *ConfigMapReconciler) 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