Documentation ¶
Index ¶
- Constants
- func New(mgr manager.Manager, stopChan <-chan struct{}) (controller.Controller, error)
- func ObserveCronJob(cli client.Client, namespace string, selector labels.Selector) ([]addonmgrv1alpha1.ObjectStatus, error)
- func ObserveDaemonSet(cli client.Client, namespace string, selector labels.Selector) ([]addonmgrv1alpha1.ObjectStatus, error)
- func ObserveDeployment(cli client.Client, namespace string, selector labels.Selector) ([]addonmgrv1alpha1.ObjectStatus, error)
- func ObserveJob(cli client.Client, namespace string, selector labels.Selector) ([]addonmgrv1alpha1.ObjectStatus, error)
- func ObserveNamespace(cli client.Client, name string, selector labels.Selector) ([]addonmgrv1alpha1.ObjectStatus, error)
- func ObserveReplicaSet(cli client.Client, namespace string, selector labels.Selector) ([]addonmgrv1alpha1.ObjectStatus, error)
- func ObserveService(cli client.Client, namespace string, selector labels.Selector) ([]addonmgrv1alpha1.ObjectStatus, error)
- func ObserveStatefulSet(cli client.Client, name string, selector labels.Selector) ([]addonmgrv1alpha1.ObjectStatus, error)
- type AddonReconciler
- func (r *AddonReconciler) Finalize(ctx context.Context, addon *addonmgrv1alpha1.Addon, ...) error
- func (r *AddonReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *AddonReconciler) SetFinalizer(ctx context.Context, addon *addonmgrv1alpha1.Addon, finalizerName string) error
- type WfInformers
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) 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
Click to show internal directories.
Click to hide internal directories.