controllers

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL