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 ¶
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 ¶
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 ¶
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.