isbservicerollout

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 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) ChildNeedsUpdating added in v0.11.0

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

ChildNeedsUpdating determines if the difference between the current child definition and the desired child definition requires an update

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

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

func (*ISBServiceRolloutReconciler) MarkRolloutPaused

func (r *ISBServiceRolloutReconciler) MarkRolloutPaused(ctx context.Context, rollout client.Object, paused 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

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