Documentation ¶
Index ¶
- Constants
- type AddonReconciler
- func (r *AddonReconciler) Finalize(ctx context.Context, addon *addonmgrv1alpha1.Addon, ...) error
- func (r *AddonReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)
- func (r *AddonReconciler) SetFinalizer(ctx context.Context, addon *addonmgrv1alpha1.Addon, finalizerName string) error
- func (r *AddonReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
View Source
const TTL = time.Duration(1) * time.Hour // 1 hour
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) 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
Click to show internal directories.
Click to hide internal directories.