controllers

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.5.0

func New(mgr manager.Manager) error

func NewAddonController added in v0.5.2

func NewAddonController(mgr manager.Manager, dynClient dynamic.Interface, wfInf cache.SharedIndexInformer, versionCache addon.VersionCacheClient, addonUpdater *addon.AddonUpdater) (controller.Controller, error)

func NewWFController added in v0.5.1

func NewWFController(mgr manager.Manager, dynClient dynamic.Interface, addonUpdater *pkgaddon.AddonUpdater) error

func ObserveCronJob added in v0.5.0

func ObserveCronJob(cli client.Client, namespace string, selector labels.Selector) ([]addonmgrv1alpha1.ObjectStatus, error)

func ObserveDaemonSet added in v0.5.0

func ObserveDaemonSet(cli client.Client, namespace string, selector labels.Selector) ([]addonmgrv1alpha1.ObjectStatus, error)

func ObserveDeployment added in v0.5.0

func ObserveDeployment(cli client.Client, namespace string, selector labels.Selector) ([]addonmgrv1alpha1.ObjectStatus, error)

func ObserveJob added in v0.5.0

func ObserveJob(cli client.Client, namespace string, selector labels.Selector) ([]addonmgrv1alpha1.ObjectStatus, error)

func ObserveNamespace added in v0.5.0

func ObserveNamespace(cli client.Client, name string, selector labels.Selector) ([]addonmgrv1alpha1.ObjectStatus, error)

func ObserveReplicaSet added in v0.5.0

func ObserveReplicaSet(cli client.Client, namespace string, selector labels.Selector) ([]addonmgrv1alpha1.ObjectStatus, error)

func ObserveService added in v0.5.0

func ObserveService(cli client.Client, namespace string, selector labels.Selector) ([]addonmgrv1alpha1.ObjectStatus, error)

func ObserveStatefulSet added in v0.5.0

func ObserveStatefulSet(cli client.Client, name string, selector labels.Selector) ([]addonmgrv1alpha1.ObjectStatus, error)

Types

type AddonReconciler

type AddonReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

AddonReconciler reconciles a Addon object

func NewAddonReconciler

func NewAddonReconciler(mgr manager.Manager, dynClient dynamic.Interface, wfInf cache.SharedIndexInformer, versionCache addon.VersionCacheClient, addonUpdater *addon.AddonUpdater) *AddonReconciler

NewAddonReconciler returns an instance of AddonReconciler

func (*AddonReconciler) Finalize

func (r *AddonReconciler) Finalize(ctx context.Context, addon *addonmgrv1alpha1.Addon, wfl workflows.AddonLifecycle, finalizerName string) error

Finalize runs finalizer for addon

func (*AddonReconciler) Reconcile

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

Reconcile method for all addon requests

func (*AddonReconciler) SetFinalizer

func (r *AddonReconciler) SetFinalizer(ctx context.Context, addon *addonmgrv1alpha1.Addon, finalizerName string) error

SetFinalizer adds finalizer to addon instances

type WorkflowReconciler added in v0.5.2

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

func (*WorkflowReconciler) Reconcile added in v0.5.2

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

Jump to

Keyboard shortcuts

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