Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var PrimaryPred = predicate.Funcs{ UpdateFunc: func(e event.UpdateEvent) bool { return true }, DeleteFunc: func(e event.DeleteEvent) bool { return true }, CreateFunc: func(e event.CreateEvent) bool { return true }, GenericFunc: func(e event.GenericEvent) bool { return false }, }
PrimaryPred is the predicate that filters events for the CustomPodAutoscaler primary resource.
var SecondaryPred = predicate.Funcs{ UpdateFunc: func(e event.UpdateEvent) bool { return false }, DeleteFunc: func(e event.DeleteEvent) bool { return true }, CreateFunc: func(e event.CreateEvent) bool { return false }, GenericFunc: func(e event.GenericEvent) bool { return false }, }
SecondaryPred is the predicate that filters events for the CustomPodAutoscaler's secondary resources (deployment/service/role/rolebinding).
Functions ¶
This section is empty.
Types ¶
type CustomPodAutoscalerReconciler ¶
type CustomPodAutoscalerReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme KubernetesResourceReconciler k8sReconciler }
CustomPodAutoscalerReconciler reconciles a CustomPodAutoscaler object.
func (*CustomPodAutoscalerReconciler) Reconcile ¶
Reconcile reads that state of the cluster for a CustomPodAutoscaler object and makes changes based on the state read and what is in the CustomPodAutoscaler.Spec 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 (*CustomPodAutoscalerReconciler) SetupWithManager ¶
func (r *CustomPodAutoscalerReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the CustomPodAutoscaler controller, setting up watches with the manager provided