controllers

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// addon ttl time
	TTL = time.Duration(1) * time.Hour // 1 hour

)

Variables

This section is empty.

Functions

func New added in v0.5.0

func New(mgr manager.Manager, stopChan <-chan struct{}) (controller.Controller, 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) *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 WfInformers added in v0.5.0

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

func NewWfInformers added in v0.5.0

func NewWfInformers(nsInfo dynamicinformer.DynamicSharedInformerFactory, stopCh <-chan struct{}) *WfInformers

func (*WfInformers) Start added in v0.5.0

func (wfinfo *WfInformers) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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