Documentation ¶
Index ¶
- func GetNextValidationCheckDuration(kd *v1alpha1.KanaryDeployment) time.Duration
- func GetValidationDeadLine(kd *v1alpha1.KanaryDeployment) time.Time
- func IsDeadlinePeriodDone(kd *v1alpha1.KanaryDeployment) bool
- func IsInitialDelayDone(kd *v1alpha1.KanaryDeployment) (time.Duration, bool)
- func IsStatusAfterDeadlineNone(kd *kanaryv1alpha1.KanaryDeployment) bool
- type Interface
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNextValidationCheckDuration ¶
func GetNextValidationCheckDuration(kd *v1alpha1.KanaryDeployment) time.Duration
GetNextValidationCheckDuration return the shortest duration between deadline-now and MaxIntervalPeriod
func GetValidationDeadLine ¶
func GetValidationDeadLine(kd *v1alpha1.KanaryDeployment) time.Time
GetValidationDeadLine return the timestamp for the end validation period
func IsDeadlinePeriodDone ¶
func IsDeadlinePeriodDone(kd *v1alpha1.KanaryDeployment) bool
IsDeadlinePeriodDone returns true if the InitialDelay validation periode is over.
func IsInitialDelayDone ¶
func IsInitialDelayDone(kd *v1alpha1.KanaryDeployment) (time.Duration, bool)
IsInitialDelayDone returns true if the InitialDelay validation periode is over.
func IsStatusAfterDeadlineNone ¶
func IsStatusAfterDeadlineNone(kd *kanaryv1alpha1.KanaryDeployment) bool
IsStatusAfterDeadlineNone check if there is a Manual Strategy that prevent automation with a None Status.
Types ¶
type Interface ¶
type Interface interface {
Validation(kclient client.Client, reqLogger logr.Logger, kd *kanaryv1alpha1.KanaryDeployment, dep, canaryDep *appsv1beta1.Deployment) (*Result, error)
}
Interface validation strategy interface
func NewLabelWatch ¶
func NewLabelWatch(list *kanaryv1alpha1.KanaryDeploymentSpecValidationList, s *kanaryv1alpha1.KanaryDeploymentSpecValidation) Interface
NewLabelWatch returns new validation.LabelWatch instance
func NewManual ¶
func NewManual(list *kanaryv1alpha1.KanaryDeploymentSpecValidationList, s *kanaryv1alpha1.KanaryDeploymentSpecValidation) Interface
NewManual returns new validation.Manual instance
func NewPromql ¶
func NewPromql(list *kanaryv1alpha1.KanaryDeploymentSpecValidationList, s *kanaryv1alpha1.KanaryDeploymentSpecValidation) Interface
NewPromql returns new validation.Manual instance
Click to show internal directories.
Click to hide internal directories.