control

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TerminalError

func TerminalError(wrapped error) error

TerminalError is an error that will not be retried but still be logged and recorded in metrics.

TODO: delete this error when controller-runtime version is grather than v0.15

Types

type BatchReleaseControl

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

func NewBatchReleaseControl

func NewBatchReleaseControl(impl workload.Accessor, c client.Client) *BatchReleaseControl

func (*BatchReleaseControl) Finalize

func (c *BatchReleaseControl) Finalize(ctx context.Context, info *workload.Info) error

func (*BatchReleaseControl) Initialize

func (c *BatchReleaseControl) Initialize(ctx context.Context, info *workload.Info, ownerKind, ownerName, rolloutRun string, batchIndex int32) error

func (*BatchReleaseControl) UpdatePartition

func (c *BatchReleaseControl) UpdatePartition(ctx context.Context, info *workload.Info, expectedUpdated int32) (bool, error)

type CanaryReleaseControl

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

func NewCanaryReleaseControl

func NewCanaryReleaseControl(impl workload.Accessor, c client.Client) *CanaryReleaseControl

func (*CanaryReleaseControl) CreateOrUpdate

func (*CanaryReleaseControl) Finalize

func (c *CanaryReleaseControl) Finalize(ctx context.Context, stable *workload.Info) error

func (*CanaryReleaseControl) GetCanaryObject added in v0.2.0

func (c *CanaryReleaseControl) GetCanaryObject(cluster, namespace, name string) (client.Object, error)

func (*CanaryReleaseControl) Initialize

func (c *CanaryReleaseControl) Initialize(ctx context.Context, stable *workload.Info, ownerKind, ownerName, rolloutRun string) error

Jump to

Keyboard shortcuts

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