controllers

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomMatcher

type CustomMatcher interface {
	Match(metav1.Object) ([]appstacksv1beta2.RuntimeComponent, error)
}

CustomMatcher is an interface for matching apps that satisfy a custom logic

type EnqueueRequestsForCustomIndexField

type EnqueueRequestsForCustomIndexField struct {
	handler.Funcs
	Matcher CustomMatcher
}

EnqueueRequestsForCustomIndexField enqueues reconcile Requests Runtime Components if the app is relying on the modified resource

func (*EnqueueRequestsForCustomIndexField) Create

Create implements EventHandler

func (*EnqueueRequestsForCustomIndexField) Delete

Delete implements EventHandler

func (*EnqueueRequestsForCustomIndexField) Generic

Generic implements EventHandler

func (*EnqueueRequestsForCustomIndexField) Update

Update implements EventHandler

type ImageStreamMatcher

type ImageStreamMatcher struct {
	Klient          client.Client
	WatchNamespaces []string
}

ImageStreamMatcher implements CustomMatcher for Image Streams

func (*ImageStreamMatcher) Match

Match returns all applications using the input ImageStreamTag

type RuntimeComponentReconciler

type RuntimeComponentReconciler struct {
	appstacksutils.ReconcilerBase
	Log logr.Logger
	// contains filtered or unexported fields
}

RuntimeComponentReconciler reconciles a RuntimeComponent object

func (*RuntimeComponentReconciler) Reconcile

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 (*RuntimeComponentReconciler) SetupWithManager

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

SetupWithManager initializes reconciler

type RuntimeOperationReconciler

type RuntimeOperationReconciler struct {
	client.Client
	Log        logr.Logger
	Scheme     *runtime.Scheme
	Recorder   record.EventRecorder
	RestConfig *rest.Config
}

RuntimeOperationReconciler reconciles a RuntimeOperation object

func (*RuntimeOperationReconciler) Reconcile

func (*RuntimeOperationReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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