Documentation ¶
Index ¶
- Constants
- func FindMostCurrentChildOfUpgradeState(ctx context.Context, rolloutObject ctlrcommon.RolloutObject, ...) (*unstructured.Unstructured, error)
- func GarbageCollectChildren(ctx context.Context, rolloutObject ctlrcommon.RolloutObject, ...) error
- func GetChildName(ctx context.Context, rolloutObject ctlrcommon.RolloutObject, ...) (string, error)
- func ProcessResourceWithProgressive(ctx context.Context, rolloutObject ctlrcommon.RolloutObject, ...) (bool, error)
- type AssessmentResult
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
Click to show internal directories.
Click to hide internal directories.