objectsets

package
v0.2.1-0...-90e585d Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchivedObjectSetReconciler

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

func (*ArchivedObjectSetReconciler) Reconcile

func (r *ArchivedObjectSetReconciler) Reconcile(ctx context.Context, objectSet genericObjectSet) (ctrl.Result, error)

type GenericClusterObjectSet

type GenericClusterObjectSet struct {
	packagesv1alpha1.ClusterObjectSet
}

func (*GenericClusterObjectSet) ClientObject

func (a *GenericClusterObjectSet) ClientObject() client.Object

func (*GenericClusterObjectSet) GetConditions

func (a *GenericClusterObjectSet) GetConditions() *[]metav1.Condition

func (*GenericClusterObjectSet) GetPausedFor

func (*GenericClusterObjectSet) GetPhases

func (*GenericClusterObjectSet) GetReadinessProbes

func (a *GenericClusterObjectSet) GetReadinessProbes() []packagesv1alpha1.ObjectSetProbe

func (*GenericClusterObjectSet) IsArchived

func (a *GenericClusterObjectSet) IsArchived() bool

func (*GenericClusterObjectSet) IsObjectPaused

func (a *GenericClusterObjectSet) IsObjectPaused(obj client.Object) bool

func (*GenericClusterObjectSet) IsPaused

func (a *GenericClusterObjectSet) IsPaused() bool

func (*GenericClusterObjectSet) SetStatusPausedFor

func (a *GenericClusterObjectSet) SetStatusPausedFor(
	pausedFor []packagesv1alpha1.ObjectSetPausedObject)

func (*GenericClusterObjectSet) UpdatePhase

func (a *GenericClusterObjectSet) UpdatePhase()

type GenericClusterObjectSetPhase

type GenericClusterObjectSetPhase struct {
	packagesv1alpha1.ClusterObjectSetPhase
}

func (*GenericClusterObjectSetPhase) ClientObject

func (a *GenericClusterObjectSetPhase) ClientObject() client.Object

func (*GenericClusterObjectSetPhase) GetConditions

func (a *GenericClusterObjectSetPhase) GetConditions() []metav1.Condition

func (*GenericClusterObjectSetPhase) GetStatusPausedFor

func (*GenericClusterObjectSetPhase) SetPhase

func (*GenericClusterObjectSetPhase) SetReadinessProbes

func (a *GenericClusterObjectSetPhase) SetReadinessProbes(probes []packagesv1alpha1.ObjectSetProbe)

func (*GenericClusterObjectSetPhase) SetSpecPausedFor

type GenericObjectSet

type GenericObjectSet struct {
	packagesv1alpha1.ObjectSet
}

func (*GenericObjectSet) ClientObject

func (a *GenericObjectSet) ClientObject() client.Object

func (*GenericObjectSet) GetConditions

func (a *GenericObjectSet) GetConditions() *[]metav1.Condition

func (*GenericObjectSet) GetPausedFor

func (*GenericObjectSet) GetPhases

func (*GenericObjectSet) GetReadinessProbes

func (a *GenericObjectSet) GetReadinessProbes() []packagesv1alpha1.ObjectSetProbe

func (*GenericObjectSet) IsArchived

func (a *GenericObjectSet) IsArchived() bool

func (*GenericObjectSet) IsObjectPaused

func (a *GenericObjectSet) IsObjectPaused(obj client.Object) bool

func (*GenericObjectSet) IsPaused

func (a *GenericObjectSet) IsPaused() bool

func (*GenericObjectSet) SetStatusPausedFor

func (a *GenericObjectSet) SetStatusPausedFor(
	pausedFor []packagesv1alpha1.ObjectSetPausedObject)

func (*GenericObjectSet) UpdatePhase

func (a *GenericObjectSet) UpdatePhase()

type GenericObjectSetController

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

Generic reconciler for both ObjectSet and ClusterObjectSet objects.

func NewClusterObjectSetController

func NewClusterObjectSetController(
	c client.Client, log logr.Logger,
	scheme *runtime.Scheme, dw dynamicWatcher,
) *GenericObjectSetController

func NewGenericObjectSetController

func NewGenericObjectSetController(
	gvk schema.GroupVersionKind,
	phaseGVK schema.GroupVersionKind,
	c client.Client, log logr.Logger,
	scheme *runtime.Scheme, dw dynamicWatcher,
) *GenericObjectSetController

func NewObjectSetController

func NewObjectSetController(
	c client.Client, log logr.Logger,
	scheme *runtime.Scheme, dw dynamicWatcher,
) *GenericObjectSetController

func (*GenericObjectSetController) Reconcile

func (c *GenericObjectSetController) Reconcile(
	ctx context.Context, req ctrl.Request,
) (ctrl.Result, error)

func (*GenericObjectSetController) SetupWithManager

func (c *GenericObjectSetController) SetupWithManager(
	mgr ctrl.Manager) error

type GenericObjectSetPhase

type GenericObjectSetPhase struct {
	packagesv1alpha1.ObjectSetPhase
}

func (*GenericObjectSetPhase) ClientObject

func (a *GenericObjectSetPhase) ClientObject() client.Object

func (*GenericObjectSetPhase) GetConditions

func (a *GenericObjectSetPhase) GetConditions() []metav1.Condition

func (*GenericObjectSetPhase) GetStatusPausedFor

func (*GenericObjectSetPhase) SetPhase

func (*GenericObjectSetPhase) SetReadinessProbes

func (a *GenericObjectSetPhase) SetReadinessProbes(probes []packagesv1alpha1.ObjectSetProbe)

func (*GenericObjectSetPhase) SetSpecPausedFor

func (a *GenericObjectSetPhase) SetSpecPausedFor(paused []packagesv1alpha1.ObjectSetPausedObject)

type ObjectSetPhaseReconciler

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

func (*ObjectSetPhaseReconciler) Reconcile

func (r *ObjectSetPhaseReconciler) Reconcile(
	ctx context.Context, objectSet genericObjectSet,
) (ctrl.Result, error)

type TeardownHandler

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

func NewTeardownHandler

func NewTeardownHandler(
	c client.Client,
	dw dynamicWatchFreer,
	newObjectSetPhase func() genericObjectSetPhase,
) *TeardownHandler

func (*TeardownHandler) Teardown

func (h *TeardownHandler) Teardown(
	ctx context.Context, objectSet genericObjectSet,
) (done bool, err error)

Jump to

Keyboard shortcuts

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