controllers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const TTL int64 = 180000

addon ttl time

Variables

This section is empty.

Functions

This section is empty.

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, log logr.Logger) *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(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

func (*AddonReconciler) SetupWithManager

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

SetupWithManager is called to setup manager and watchers

Jump to

Keyboard shortcuts

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