controllers

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: EPL-1.0 Imports: 37 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) ([]openlibertyv1beta2.OpenLibertyApplication, 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 for OpenLiberty Applications 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 ReconcileOpenLiberty

type ReconcileOpenLiberty struct {
	// This client, initialized using mgr.Client() above, is a split client
	// that reads objects from the cache and writes to the apiserver
	oputils.ReconcilerBase
	Log logr.Logger
	// contains filtered or unexported fields
}

ReconcileOpenLiberty reconciles a OpenLiberty object

func (*ReconcileOpenLiberty) Reconcile

func (r *ReconcileOpenLiberty) Reconcile(ctx context.Context, request 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.

func (*ReconcileOpenLiberty) SetupWithManager

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

type ReconcileOpenLibertyDump

type ReconcileOpenLibertyDump struct {
	// This client, initialized using mgr.Client() above, is a split client
	// that reads objects from the cache and writes to the apiserver
	Client     client.Client
	Scheme     *runtime.Scheme
	Recorder   record.EventRecorder
	RestConfig *rest.Config
	Log        logr.Logger
}

ReconcileOpenLibertyDump reconciles a OpenLibertyDump object

func (*ReconcileOpenLibertyDump) Reconcile

func (r *ReconcileOpenLibertyDump) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

func (*ReconcileOpenLibertyDump) SetupWithManager

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

type ReconcileOpenLibertyTrace

type ReconcileOpenLibertyTrace struct {
	// This client, initialized using mgr.Client() above, is a split client
	// that reads objects from the cache and writes to the apiserver
	Client     client.Client
	Scheme     *runtime.Scheme
	Recorder   record.EventRecorder
	RestConfig *rest.Config
	Log        logr.Logger
}

ReconcileOpenLibertyTrace reconciles a OpenLibertyTrace object

func (*ReconcileOpenLibertyTrace) Reconcile

func (r *ReconcileOpenLibertyTrace) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

func (*ReconcileOpenLibertyTrace) SetupWithManager

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

func (*ReconcileOpenLibertyTrace) UpdateStatus

UpdateStatus updates the status

Jump to

Keyboard shortcuts

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