deploy

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Separator = '/'
)

Variables

This section is empty.

Functions

func RevisionChanged

func RevisionChanged(action string) bool

func StateSatisfied

func StateSatisfied(d *Deploy, desiredStage tritonappsv1alpha1.BatchPhase, desiredBatches int) bool

Types

type Deploy

type Deploy struct {
	*tritonappsv1alpha1.DeployFlow
}

Deploy is the wrapper for tritonappsv1alpha1.DeployFlow type.

func FromDeploy

func FromDeploy(d *tritonappsv1alpha1.DeployFlow) *Deploy

func (*Deploy) Aborted

func (d *Deploy) Aborted() bool

func (*Deploy) AllBatchFinished

func (d *Deploy) AllBatchFinished() bool

func (*Deploy) Auto

func (d *Deploy) Auto() bool

func (*Deploy) BatchIntervalSeconds

func (d *Deploy) BatchIntervalSeconds() int32

func (*Deploy) BatchSize

func (d *Deploy) BatchSize() *intstr.IntOrString

func (*Deploy) BatchSizeNum

func (d *Deploy) BatchSizeNum() int32

func (*Deploy) Canary

func (d *Deploy) Canary() int

func (*Deploy) CanaryEnabled

func (d *Deploy) CanaryEnabled() bool

func (*Deploy) Canceled

func (d *Deploy) Canceled() bool

func (*Deploy) CurrentBatchFailed

func (d *Deploy) CurrentBatchFailed() bool

func (*Deploy) CurrentBatchFinished

func (d *Deploy) CurrentBatchFinished() bool

func (*Deploy) CurrentBatchInfo

func (d *Deploy) CurrentBatchInfo() *tritonappsv1alpha1.BatchCondition

func (*Deploy) CurrentBatchIsCanary

func (d *Deploy) CurrentBatchIsCanary() bool

func (*Deploy) CurrentBatchIsContainersReady

func (d *Deploy) CurrentBatchIsContainersReady() bool

CurrentBatchReady returns true if all pods in this Batch is ready or failed

func (*Deploy) CurrentBatchIsPodReady

func (d *Deploy) CurrentBatchIsPodReady() bool

CurrentBatchReady returns true if all pods in this Batch is ready or failed

func (*Deploy) CurrentBatchNumber

func (d *Deploy) CurrentBatchNumber() int

func (*Deploy) CurrentBatchPending

func (d *Deploy) CurrentBatchPending() bool

func (*Deploy) CurrentBatchPhase

func (d *Deploy) CurrentBatchPhase() tritonappsv1alpha1.BatchPhase

func (*Deploy) CurrentBatchPods

func (d *Deploy) CurrentBatchPods() []tritonappsv1alpha1.PodInfo

func (*Deploy) CurrentBatchPullInAt

func (d *Deploy) CurrentBatchPullInAt() metav1.Time

func (*Deploy) CurrentBatchPulledIn

func (d *Deploy) CurrentBatchPulledIn() bool

func (*Deploy) CurrentBatchSize

func (d *Deploy) CurrentBatchSize() int

func (*Deploy) CurrentBatchSmoked

func (d *Deploy) CurrentBatchSmoked() bool

func (*Deploy) CurrentBatchSmoking

func (d *Deploy) CurrentBatchSmoking() bool

func (*Deploy) CurrentBatchStarted

func (d *Deploy) CurrentBatchStarted() bool

func (*Deploy) DesiredBatches

func (d *Deploy) DesiredBatches() int

func (*Deploy) DesiredPausedState

func (d *Deploy) DesiredPausedState() *bool

func (*Deploy) Failed

func (d *Deploy) Failed() bool

func (*Deploy) Finished

func (d *Deploy) Finished() bool

func (*Deploy) GetCloneSetLabels

func (d *Deploy) GetCloneSetLabels() labels.Set

func (*Deploy) GetCondition

func (d *Deploy) GetCondition() []tritonappsv1alpha1.BatchCondition

func (*Deploy) GetInstanceName

func (d *Deploy) GetInstanceName() string

func (*Deploy) GetLastApplied

func (d *Deploy) GetLastApplied() (*tritonappsv1alpha1.ApplicationSpec, error)

func (*Deploy) GetNotContainerReadyPods

func (d *Deploy) GetNotContainerReadyPods() []string

func (*Deploy) GetUpdateRevision

func (d *Deploy) GetUpdateRevision() string

func (*Deploy) Interruptible

func (d *Deploy) Interruptible() bool

Interruptible indicates that the deploy can be paused or canceled.

func (*Deploy) MarkAsAborted

func (d *Deploy) MarkAsAborted()

func (*Deploy) MarkAsBatchFinished

func (d *Deploy) MarkAsBatchFinished()

func (*Deploy) MarkAsBatchStarted

func (d *Deploy) MarkAsBatchStarted()

func (*Deploy) MarkAsCanceled

func (d *Deploy) MarkAsCanceled()

func (*Deploy) MarkAsFailed

func (d *Deploy) MarkAsFailed()

func (*Deploy) MarkAsInitializing

func (d *Deploy) MarkAsInitializing()

func (*Deploy) MarkAsPaused

func (d *Deploy) MarkAsPaused()

func (*Deploy) MarkAsResumed

func (d *Deploy) MarkAsResumed()

func (*Deploy) MarkAsSuccess

func (d *Deploy) MarkAsSuccess()

func (*Deploy) MarkCurrentBatchAsBaking

func (d *Deploy) MarkCurrentBatchAsBaking()

func (*Deploy) MarkCurrentBatchAsFinished

func (d *Deploy) MarkCurrentBatchAsFinished()

func (*Deploy) MarkCurrentBatchAsSmoked

func (d *Deploy) MarkCurrentBatchAsSmoked()

func (*Deploy) MarkCurrentBatchAsStarted

func (d *Deploy) MarkCurrentBatchAsStarted(startedAt metav1.Time)

func (*Deploy) Mode

func (*Deploy) MoveForward

func (d *Deploy) MoveForward() bool

func (*Deploy) NextBatchAndPhase

func (d *Deploy) NextBatchAndPhase() (int, tritonappsv1alpha1.BatchPhase)

call NextBatchAndPhase only when current state is satisfied!

func (*Deploy) NoChangedDeploy

func (d *Deploy) NoChangedDeploy() bool

func (*Deploy) NonUpdateStrategy

func (d *Deploy) NonUpdateStrategy() *tritonappsv1alpha1.DeployNonUpdateStrategy

func (*Deploy) NotStarted

func (d *Deploy) NotStarted() bool

func (*Deploy) Paused

func (d *Deploy) Paused() bool

func (*Deploy) Pending

func (d *Deploy) Pending() bool

func (*Deploy) PrepareNewBatch

func (d *Deploy) PrepareNewBatch()

func (*Deploy) PrepareNewDeploy

func (d *Deploy) PrepareNewDeploy()

func (*Deploy) RevisionChanged

func (d *Deploy) RevisionChanged() bool

func (*Deploy) SetCondition

func (d *Deploy) SetCondition(c tritonappsv1alpha1.BatchCondition)

func (*Deploy) SetPaused

func (d *Deploy) SetPaused(paused bool)

func (*Deploy) SetPodsStatus

func (d *Deploy) SetPodsStatus(pods []string)

func (*Deploy) SetPulledInAt

func (d *Deploy) SetPulledInAt()

func (*Deploy) SetUpdatedAt

func (d *Deploy) SetUpdatedAt(updatedAt metav1.Time)

func (*Deploy) ShouldCancel

func (d *Deploy) ShouldCancel() bool

func (*Deploy) SkipPullIn

func (d *Deploy) SkipPullIn() bool

func (*Deploy) StartBatch

func (d *Deploy) StartBatch()

func (*Deploy) StartProgress

func (d *Deploy) StartProgress()

func (*Deploy) StateSatisfied

func (d *Deploy) StateSatisfied() bool

StateSatisfied returns true if current state meets the desired state in updateStrategy/nonUpdateStrategy,

func (Deploy) String

func (d Deploy) String() string

String returns the general purpose string representation

func (*Deploy) Success

func (d *Deploy) Success() bool

func (*Deploy) Unwrap

func (d *Deploy) Unwrap() *tritonappsv1alpha1.DeployFlow

Unwrap returns the tritonappsv1alpha1.DeployFlow object.

func (*Deploy) UpdateStrategy

func (d *Deploy) UpdateStrategy() *tritonappsv1alpha1.DeployUpdateStrategy

Jump to

Keyboard shortcuts

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