Documentation
¶
Overview ¶
Package controller holds the operator's reconcilers.
Index ¶
Constants ¶
const ( // DefaultDebounce batches changes: a GitOps sync of many objects // produces one bundle, not one per object. DefaultDebounce = time.Second )
Defaults of the builder.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleReconciler ¶
type BundleReconciler struct {
Client client.Client
// APIReader reads uncached, for the current bundle.
APIReader client.Reader
// Namespace is the operator's, where the bundle Secrets are.
Namespace string
Debounce time.Duration
Now func() time.Time
// contains filtered or unexported fields
}
BundleReconciler builds the cluster's bundle from its WAF objects and reports each object's Accepted condition. It runs on the leader only.
func (*BundleReconciler) Reconcile ¶
func (r *BundleReconciler) Reconcile(ctx context.Context, _ reconcile.Request) (reconcile.Result, error)
Reconcile rebuilds the bundle.
func (*BundleReconciler) SetupWithManager ¶
func (r *BundleReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers the builder with mgr.