progressive

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AssessmentResultSuccess = iota
	AssessmentResultFailure
	AssessmentResultUnknown
)

Variables

This section is empty.

Functions

func FindMostCurrentChildOfUpgradeState added in v0.10.0

func FindMostCurrentChildOfUpgradeState(ctx context.Context, rolloutObject ctlrcommon.RolloutObject, upgradeState common.UpgradeState, checkLive bool, c client.Client) (*unstructured.Unstructured, error)

find the most current child of a Rollout typically we should only find one, but perhaps a previous reconciliation failure could cause us to find multiple if we do see older ones, recycle them

func GarbageCollectChildren

func GarbageCollectChildren(
	ctx context.Context,
	rolloutObject ctlrcommon.RolloutObject,
	controller progressiveController,
	c client.Client,
) error

func GetChildName

func GetChildName(ctx context.Context, rolloutObject ctlrcommon.RolloutObject, controller progressiveController, upgradeState common.UpgradeState, c client.Client, useExistingChild bool) (string, error)

get the name of the child whose parent is "rolloutObject" and whose upgrade state is "upgradeState" if none is found, create a new one if one is found, create a new one if "useExistingChild=false", else use existing one

func ProcessResourceWithProgressive

func ProcessResourceWithProgressive(ctx context.Context, rolloutObject ctlrcommon.RolloutObject,
	existingPromotedChild *unstructured.Unstructured, promotedDifference bool, controller progressiveController, c client.Client) (bool, error)

return whether we're done, and error if any

Types

type AssessmentResult added in v0.10.0

type AssessmentResult int

Jump to

Keyboard shortcuts

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