isbservicerollout

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerISBSVCRollout = "isbsvc-rollout-controller"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ISBServiceRolloutReconciler

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

ISBServiceRolloutReconciler reconciles an ISBServiceRollout object

func NewISBServiceRolloutReconciler

func NewISBServiceRolloutReconciler(
	c client.Client,
	s *runtime.Scheme,
	customMetrics *metrics.CustomMetrics,
	recorder record.EventRecorder,
) *ISBServiceRolloutReconciler

func (*ISBServiceRolloutReconciler) AssessUpgradingChild added in v0.13.0

func (r *ISBServiceRolloutReconciler) AssessUpgradingChild(ctx context.Context, existingUpgradingChildDef *unstructured.Unstructured) (apiv1.AssessmentResult, error)

AssessUpgradingChild makes an assessment of the upgrading child to determine if it was successful, failed, or still not known This implements a function of the progressiveController interface

func (*ISBServiceRolloutReconciler) ChildNeedsUpdating added in v0.11.0

func (r *ISBServiceRolloutReconciler) ChildNeedsUpdating(ctx context.Context, from, to *unstructured.Unstructured) (bool, error)

ChildNeedsUpdating determines if the difference between the current child definition and the desired child definition requires an update This implements a function of the progressiveController interface

func (*ISBServiceRolloutReconciler) CreateUpgradingChildDefinition added in v0.11.0

func (r *ISBServiceRolloutReconciler) CreateUpgradingChildDefinition(ctx context.Context, rolloutObject ctlrcommon.RolloutObject, name string) (*unstructured.Unstructured, error)

CreateUpgradingChildDefinition creates an InterstepBufferService in an "upgrading" state with the given name This implements a function of the progressiveController interface

func (*ISBServiceRolloutReconciler) ErrorHandler

func (r *ISBServiceRolloutReconciler) ErrorHandler(isbServiceRollout *apiv1.ISBServiceRollout, err error, reason, msg string)

func (*ISBServiceRolloutReconciler) GetChildTypeString

func (r *ISBServiceRolloutReconciler) GetChildTypeString() string

for the purpose of logging

func (*ISBServiceRolloutReconciler) GetPipelineList

func (r *ISBServiceRolloutReconciler) GetPipelineList(ctx context.Context, rolloutNamespace string, rolloutName string) (*unstructured.UnstructuredList, error)

func (*ISBServiceRolloutReconciler) GetRolloutKey

func (r *ISBServiceRolloutReconciler) GetRolloutKey(rolloutNamespace string, rolloutName string) string

func (*ISBServiceRolloutReconciler) IncrementChildCount added in v0.11.0

func (r *ISBServiceRolloutReconciler) IncrementChildCount(ctx context.Context, rolloutObject ctlrcommon.RolloutObject) (int32, error)

IncrementChildCount updates the count of children for the Resource in Kubernetes and returns the index that should be used for the next child This implements a function of the RolloutController interface

func (*ISBServiceRolloutReconciler) MarkRolloutPaused

func (r *ISBServiceRolloutReconciler) MarkRolloutPaused(ctx context.Context, rollout client.Object, paused bool) error

func (*ISBServiceRolloutReconciler) ProcessPromotedChildPostUpgrade added in v0.13.0

func (r *ISBServiceRolloutReconciler) ProcessPromotedChildPostUpgrade(
	ctx context.Context,
	rolloutPromotedChildStatus *apiv1.PromotedChildStatus,
	promotedChildDef *unstructured.Unstructured,
	c client.Client,
) (bool, error)

func (*ISBServiceRolloutReconciler) ProcessPromotedChildPreUpgrade added in v0.13.0

func (r *ISBServiceRolloutReconciler) ProcessPromotedChildPreUpgrade(
	ctx context.Context,
	rolloutPromotedChildStatus *apiv1.PromotedChildStatus,
	promotedChildDef *unstructured.Unstructured,
	c client.Client,
) (bool, error)

func (*ISBServiceRolloutReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.17.3/pkg/reconcile

func (*ISBServiceRolloutReconciler) Recycle added in v0.11.0

Recycle deletes child; returns true if it was in fact deleted This implements a function of the RolloutController interface

func (*ISBServiceRolloutReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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