controllers

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option interface {
}

Option provides an extensible set of functional options for configuring autoscaler-reconciler as well as schedule-reconciler

func WithClock

func WithClock(clock utilclock.Clock) Option

Add clock option for the autoscaler-reconciler

func WithLog

func WithLog(log logr.Logger) Option

Add logger option for the autoscaler-reconciler

func WithScaleDownInterval

func WithScaleDownInterval(scaleDownInterval time.Duration) Option

Add scale-down-interval option for the autoscaler-reconciler

func WithSyncers

func WithSyncers(syncers map[types.NamespacedName]syncerpkg.Syncer) Option

Add syncer option for the autoscaler-reconciler

type SpannerAutoscaleScheduleReconciler added in v0.4.0

type SpannerAutoscaleScheduleReconciler struct {
	// contains filtered or unexported fields
}

SpannerAutoscaleScheduleReconciler reconciles a SpannerAutoscaleSchedule object

func NewSpannerAutoscaleScheduleReconciler added in v0.4.0

func NewSpannerAutoscaleScheduleReconciler(
	ctrlClient ctrlclient.Client,
	scheme *runtime.Scheme,
	recorder record.EventRecorder,
	opts ...Option,
) *SpannerAutoscaleScheduleReconciler

func (*SpannerAutoscaleScheduleReconciler) Reconcile added in v0.4.0

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*SpannerAutoscaleScheduleReconciler) SetupWithManager added in v0.4.0

func (r *SpannerAutoscaleScheduleReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type SpannerAutoscaleScheduleReconcilerOption added in v0.4.0

type SpannerAutoscaleScheduleReconcilerOption interface {
	// contains filtered or unexported methods
}

type SpannerAutoscalerReconciler

type SpannerAutoscalerReconciler struct {
	// contains filtered or unexported fields
}

SpannerAutoscalerReconciler reconciles a SpannerAutoscaler object.

func NewSpannerAutoscalerReconciler

func NewSpannerAutoscalerReconciler(
	ctrlClient ctrlclient.Client,
	apiReader ctrlclient.Reader,
	scheme *runtime.Scheme,
	recorder record.EventRecorder,
	logger logr.Logger,
	opts ...Option,
) *SpannerAutoscalerReconciler

NewSpannerAutoscalerReconciler returns a new SpannerAutoscalerReconciler.

func (*SpannerAutoscalerReconciler) Reconcile

Reconcile implements ctrlreconcile.Reconciler.

func (*SpannerAutoscalerReconciler) SetupWithManager

func (r *SpannerAutoscalerReconciler) SetupWithManager(mgr ctrlmanager.Manager) error

SetupWithManager sets up the controller with ctrlmanager.Manager.

type SpannerAutoscalerReconcilerOption added in v0.4.0

type SpannerAutoscalerReconcilerOption interface {
	// contains filtered or unexported methods
}

SpannerAutoscalerReconcilerOption is a subset the Option interface, for autoscaler-reconciler

Jump to

Keyboard shortcuts

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