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
Click to show internal directories.
Click to hide internal directories.