batchrelease

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// rollouts.kruise.io
	BatchReleaseOwnerRefLabel = "rollouts.kruise.io/owner-ref"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchRelease

type BatchRelease interface {
	// Verify will create batchRelease or update batchRelease steps configuration and
	// return whether the batchRelease configuration is consistent with the rollout step
	Verify(index int32) (bool, error)

	// 1. Promote release workload in step(index), 1<=index<=len(step)
	// 2. Promote will resume stable workload if the last batch(index=-1) is finished
	Promote(index int32, checkReady bool) (bool, error)

	// FetchBatchRelease fetch batchRelease
	FetchBatchRelease() (*rolloutv1alpha1.BatchRelease, error)

	// Finalize clean up batchRelease
	// 1. delete canary deployments
	// 2. delete batchRelease CRD
	Finalize() (bool, error)
}

BatchRelease is not the actual controller of the BatchRelease controller, but rather the ability to interact with the BatchRelease controller through the BatchRelease CRD to achieve a batch release

func NewInnerBatchController

func NewInnerBatchController(c client.Client, rollout *rolloutv1alpha1.Rollout) BatchRelease

Jump to

Keyboard shortcuts

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