objectdeployments

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 DeprecationReconciler

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

handles deprecation of outdated ObjectSets.

func (*DeprecationReconciler) Reconcile

func (r *DeprecationReconciler) Reconcile(
	ctx context.Context, objectDeployment genericObjectDeployment,
	currentObjectSet genericObjectSet,
	outdatedObjectSets []genericObjectSet,
) (ctrl.Result, error)

type EnsurePauseReconciler

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

EnsurePauseReconciler handles pausing of existing ObjectSets, to prevent collisions and double owned objects.

func (*EnsurePauseReconciler) Reconcile

func (r *EnsurePauseReconciler) Reconcile(
	ctx context.Context, objectDeployment genericObjectDeployment,
) (ctrl.Result, error)

type GenericClusterObjectDeployment

type GenericClusterObjectDeployment struct {
	packagesv1alpha1.ClusterObjectDeployment
}

func (*GenericClusterObjectDeployment) ClientObject

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

func (*GenericClusterObjectDeployment) GetConditions

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

func (*GenericClusterObjectDeployment) GetObjectSetTemplate

func (*GenericClusterObjectDeployment) GetRevisionHistoryLimit

func (a *GenericClusterObjectDeployment) GetRevisionHistoryLimit() *int

func (*GenericClusterObjectDeployment) GetSelector

func (*GenericClusterObjectDeployment) GetStatusCollisionCount

func (a *GenericClusterObjectDeployment) GetStatusCollisionCount() *int32

func (*GenericClusterObjectDeployment) GetStatusTemplateHash

func (a *GenericClusterObjectDeployment) GetStatusTemplateHash() string

func (*GenericClusterObjectDeployment) SetStatusCollisionCount

func (a *GenericClusterObjectDeployment) SetStatusCollisionCount(cc *int32)

func (*GenericClusterObjectDeployment) SetStatusTemplateHash

func (a *GenericClusterObjectDeployment) SetStatusTemplateHash(templateHash string)

func (*GenericClusterObjectDeployment) UpdatePhase

func (a *GenericClusterObjectDeployment) UpdatePhase()

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) GetPhases

func (*GenericClusterObjectSet) GetSpecPausedFor

func (*GenericClusterObjectSet) GetStatusPausedFor

func (*GenericClusterObjectSet) GetTemplateSpec

func (*GenericClusterObjectSet) SetArchived

func (a *GenericClusterObjectSet) SetArchived()

func (*GenericClusterObjectSet) SetSpecPausedFor

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

func (*GenericClusterObjectSet) SetTemplateSpec

func (a *GenericClusterObjectSet) SetTemplateSpec(templateSpec packagesv1alpha1.ObjectSetTemplateSpec)

type GenericClusterObjectSetList

type GenericClusterObjectSetList struct {
	packagesv1alpha1.ClusterObjectSetList
}

func (*GenericClusterObjectSetList) ClientObjectList

func (a *GenericClusterObjectSetList) ClientObjectList() client.ObjectList

func (*GenericClusterObjectSetList) GetItems

func (a *GenericClusterObjectSetList) GetItems() []genericObjectSet

type GenericObjectDeployment

type GenericObjectDeployment struct {
	packagesv1alpha1.ObjectDeployment
}

func (*GenericObjectDeployment) ClientObject

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

func (*GenericObjectDeployment) GetConditions

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

func (*GenericObjectDeployment) GetObjectSetTemplate

func (*GenericObjectDeployment) GetRevisionHistoryLimit

func (a *GenericObjectDeployment) GetRevisionHistoryLimit() *int

func (*GenericObjectDeployment) GetSelector

func (a *GenericObjectDeployment) GetSelector() metav1.LabelSelector

func (*GenericObjectDeployment) GetStatusCollisionCount

func (a *GenericObjectDeployment) GetStatusCollisionCount() *int32

func (*GenericObjectDeployment) GetStatusTemplateHash

func (a *GenericObjectDeployment) GetStatusTemplateHash() string

func (*GenericObjectDeployment) SetStatusCollisionCount

func (a *GenericObjectDeployment) SetStatusCollisionCount(cc *int32)

func (*GenericObjectDeployment) SetStatusTemplateHash

func (a *GenericObjectDeployment) SetStatusTemplateHash(templateHash string)

func (*GenericObjectDeployment) UpdatePhase

func (a *GenericObjectDeployment) UpdatePhase()

type GenericObjectDeploymentController

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

Generic reconciler for both ObjectDeployment and ClusterObjectDeployment objects.

func NewClusterObjectDeploymentController

func NewClusterObjectDeploymentController(
	c client.Client, log logr.Logger, scheme *runtime.Scheme,
) *GenericObjectDeploymentController

func NewObjectDeploymentController

func NewObjectDeploymentController(
	c client.Client, log logr.Logger, scheme *runtime.Scheme,
) *GenericObjectDeploymentController

func (*GenericObjectDeploymentController) Reconcile

func (*GenericObjectDeploymentController) SetupWithManager

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

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) GetPhases

func (*GenericObjectSet) GetSpecPausedFor

func (*GenericObjectSet) GetStatusPausedFor

func (a *GenericObjectSet) GetStatusPausedFor() []packagesv1alpha1.ObjectSetPausedObject

func (*GenericObjectSet) GetTemplateSpec

func (*GenericObjectSet) SetArchived

func (a *GenericObjectSet) SetArchived()

func (*GenericObjectSet) SetSpecPausedFor

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

func (*GenericObjectSet) SetTemplateSpec

func (a *GenericObjectSet) SetTemplateSpec(templateSpec packagesv1alpha1.ObjectSetTemplateSpec)

type GenericObjectSetList

type GenericObjectSetList struct {
	packagesv1alpha1.ObjectSetList
}

func (*GenericObjectSetList) ClientObjectList

func (a *GenericObjectSetList) ClientObjectList() client.ObjectList

func (*GenericObjectSetList) GetItems

func (a *GenericObjectSetList) GetItems() []genericObjectSet

type HashReconciler

type HashReconciler struct{}

Computes the TemplateHash status property of ObjectDeployment objects.

func (*HashReconciler) Reconcile

func (r *HashReconciler) Reconcile(
	ctx context.Context, objectDeployment genericObjectDeployment,
) (ctrl.Result, error)

type NewRevisionReconciler

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

creates a new ObjectSet, if required. handles hash collisions if they occur.

func (*NewRevisionReconciler) Reconcile

func (r *NewRevisionReconciler) Reconcile(
	ctx context.Context, objectDeployment genericObjectDeployment,
	currentObjectSet genericObjectSet,
	outdatedObjectSets []genericObjectSet,
) (ctrl.Result, error)

Jump to

Keyboard shortcuts

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