controllers

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObjectKey

func ObjectKey(object metav1.Object) client.ObjectKey

ObjectKey returns client.ObjectKey for the object.

Types

type EventData

type EventData struct {
	Revision, Severity, Message string
	Metadata                    map[string]string
}

EventData is a helper struct containing the information to be sent with an event.

type KonfigurationReconciler

type KonfigurationReconciler struct {
	client.Client
	Scheme                *runtime.Scheme
	EventRecorder         kuberecorder.EventRecorder
	ExternalEventRecorder *events.Recorder
	MetricsRecorder       *metrics.Recorder
	HTTPLog               logr.Logger
	// contains filtered or unexported fields
}

KonfigurationReconciler reconciles a Konfiguration object

func (*KonfigurationReconciler) DryRunFunc

func (r *KonfigurationReconciler) DryRunFunc() http.Handler

DryRunFunc returns the http handler for checking what a given Konfiguration would produce.

func (*KonfigurationReconciler) Reconcile

func (r *KonfigurationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

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

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*KonfigurationReconciler) SetupWithManager

func (r *KonfigurationReconciler) SetupWithManager(log logr.Logger, mgr ctrl.Manager, opts *ReconcilerOptions) error

SetupWithManager sets up the controller with the Manager.

type ReconcilerOptions

type ReconcilerOptions struct {
	MaxConcurrentReconciles   int
	HTTPRetryMax              int
	DependencyRequeueInterval time.Duration
	JsonnetCacheDirectory     string
	DryRunRequestTimeout      time.Duration
}

ReconcilerOptions are the configuration options that can be passed to a controller when setting it up with a manager instance.

type SourceRevisionChangePredicate

type SourceRevisionChangePredicate struct {
	predicate.Funcs
}

SourceRevisionChangePredicate is a predicate that determines if the source revision has changed.

func (SourceRevisionChangePredicate) Update

Update implements the predicate interface.

Jump to

Keyboard shortcuts

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