rollout

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReleaseManager added in v0.6.0

type ReleaseManager interface {
	// contains filtered or unexported methods
}

type RolloutContext added in v0.4.0

type RolloutContext struct {
	Rollout   *v1beta1.Rollout
	NewStatus *v1beta1.RolloutStatus
	// related workload
	Workload *util.Workload
	// reconcile RequeueAfter recheckTime
	RecheckTime *time.Time
	// wait stable workload pods ready
	WaitReady bool
	// finalising reason
	FinalizeReason string
}

type RolloutReconciler

type RolloutReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
	// contains filtered or unexported fields
}

RolloutReconciler reconciles a Rollout object

func (*RolloutReconciler) Reconcile

func (r *RolloutReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Rollout object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

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

func (*RolloutReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type UnifiedStatus added in v0.6.2

type UnifiedStatus struct {
	*v1beta1.CommonStatus
	// UpdatedRevision is the pointer of BlueGreenStatus.UpdatedRevision or CanaryStatus.CanaryRevision
	UpdatedRevision *string `json:"updatedRevision"`
	// UpdatedReplicas is the pointer of BlueGreenStatus.UpdatedReplicas or CanaryStatus.CanaryReplicas
	UpdatedReplicas *int32 `json:"updatedReplicas"`
	// UpdatedReadyReplicas is the pointer of BlueGreenStatus.UpdatedReadyReplicas or CanaryStatus.CanaryReadyReplicas
	UpdatedReadyReplicas *int32 `json:"updatedReadyReplicas"`
}

UnifiedStatus is a data structure used to unify BlueGreenStatus and CanaryStatus, allowing the controller to operate the current release status in a unified manner without considering the release form.

func GetUnifiedStatus added in v0.6.2

func GetUnifiedStatus(r *v1beta1.RolloutStatus) UnifiedStatus

func (UnifiedStatus) IsNil added in v0.6.2

func (u UnifiedStatus) IsNil() bool

Jump to

Keyboard shortcuts

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