Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyScheduling ¶
func ApplyScheduling(reqLogger logr.Logger, kd *kanaryv1alpha1.KanaryDeployment) (*kanaryv1alpha1.KanaryDeploymentStatus, *reconcile.Result)
apply the scheduling, status: the modified status. Modified with the scheduling activities reconcile result: should the item be requeued (and maybe status applied or error handled) if status and result are nil that mean that everyting is ok an next step in the reconcile sequence should be engaged
Types ¶
type Interface ¶
type Interface interface {
Apply(kclient client.Client, reqLogger logr.Logger, kd *kanaryv1alpha1.KanaryDeployment, dep, canarydep *appsv1beta1.Deployment) (result reconcile.Result, err error)
}
Interface represent the strategy interface
func NewStrategy ¶
func NewStrategy(spec *kanaryv1alpha1.KanaryDeploymentSpec) (Interface, error)
NewStrategy return new instance of the strategy
Click to show internal directories.
Click to hide internal directories.