Documentation ¶
Index ¶
Constants ¶
View Source
const ControllerName string = "policy-spec-sync"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PolicyReconciler ¶
type PolicyReconciler struct { // This client, initialized using mgr.Client() above, is a split client // that reads objects from the cache and writes to the apiserver HubClient client.Client ManagedClient client.Client ManagedRecorder record.EventRecorder Scheme *runtime.Scheme // The namespace that the replicated policies should be synced to. TargetNamespace string ConcurrentReconciles int // StatusSyncRequests triggers status-sync controller reconciles based on what is observed on the hub StatusSyncRequests chan<- event.GenericEvent }
ReconcilePolicy reconciles a Policy object
func (*PolicyReconciler) Reconcile ¶
func (r *PolicyReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a Policy object and makes changes based on the state read and what is in the Policy.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
func (*PolicyReconciler) SetupWithManager ¶
func (r *PolicyReconciler) SetupWithManager(mgr ctrl.Manager, additionalSource *source.Channel) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.