control

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 16 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, client client.Client) *BatchReleaseControl

func (*BatchReleaseControl) Finalize

func (c *BatchReleaseControl) Finalize(workload *workload.Info) error

func (*BatchReleaseControl) Initialize

func (c *BatchReleaseControl) Initialize(workload *workload.Info, rollout, rolloutRun string, batchIndex int32) error

func (*BatchReleaseControl) UpdatePartition

func (c *BatchReleaseControl) UpdatePartition(workload *workload.Info, partition intstr.IntOrString) (bool, error)

type CanaryReleaseControl

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

func NewCanaryReleaseControl

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

func (*CanaryReleaseControl) CreateOrUpdate

func (c *CanaryReleaseControl) CreateOrUpdate(ctx context.Context, stable *workload.Info, replicas intstr.IntOrString, podTemplatePatch *v1alpha1.MetadataPatch) (controllerutil.OperationResult, *workload.Info, error)

func (*CanaryReleaseControl) Finalize

func (c *CanaryReleaseControl) Finalize(stable *workload.Info) error

func (*CanaryReleaseControl) Initialize

func (c *CanaryReleaseControl) Initialize(stable *workload.Info, rollout, rolloutRun string) error

Jump to

Keyboard shortcuts

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