controllers

package
v0.0.0-...-2db42ee Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WatcherConfig

type WatcherConfig struct {
	// VirtualServiceObjKey represents the object key (name and namespace) of the virtual service resource to be updated
	VirtualServiceObjKey client.ObjectKey
	// RequeueInterval represents requeue interval in seconds
	RequeueInterval int
	// WebhookChartPath represents the path of the webhook chart
	// to be installed on SKR clusters upon reconciling watcher CRs
	WebhookChartPath string
	// WebhookChartReleaseName represents the helm release name of the webhook chart
	// to be installed on SKR clusters upon reconciling watcher CRs
	WebhookChartReleaseName string
}

type WatcherReconciler

type WatcherReconciler struct {
	client.Client
	*custom.IstioClient
	RestConfig *rest.Config
	Scheme     *runtime.Scheme
	Config     *WatcherConfig
}

WatcherReconciler reconciles a Watcher object.

func (*WatcherReconciler) HandleDeletingState

func (r *WatcherReconciler) HandleDeletingState(ctx context.Context, logger logr.Logger,
	obj *watcherv1alpha1.Watcher,
) error

func (*WatcherReconciler) HandleErrorState

func (r *WatcherReconciler) HandleErrorState(ctx context.Context, obj *watcherv1alpha1.Watcher) error

func (*WatcherReconciler) HandleInitialState

func (r *WatcherReconciler) HandleInitialState(ctx context.Context, obj *watcherv1alpha1.Watcher) error

func (*WatcherReconciler) HandleProcessingState

func (r *WatcherReconciler) HandleProcessingState(ctx context.Context,
	logger logr.Logger, obj *watcherv1alpha1.Watcher,
) error

func (*WatcherReconciler) HandleReadyState

func (r *WatcherReconciler) HandleReadyState(ctx context.Context, logger logr.Logger,
	obj *watcherv1alpha1.Watcher,
) error

func (*WatcherReconciler) Reconcile

func (r *WatcherReconciler) 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.

func (*WatcherReconciler) SetIstioClient

func (r *WatcherReconciler) SetIstioClient() error

func (*WatcherReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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