Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NeedOverwriteSelector ¶
func NeedOverwriteSelector(kd *kanaryv1alpha1.KanaryStatefulset) bool
NeedOverwriteSelector used to know if the Deployment.Spec.Selector needs to be overwrited for the kanary deployment
Types ¶
type Interface ¶
type Interface interface { Traffic(kclient client.Client, reqLogger logr.Logger, kd *kanaryv1alpha1.KanaryStatefulset, canaryDep *appsv1beta1.Deployment, sts *kruisev1alpha1.StatefulSet) (*kanaryv1alpha1.KanaryStatefulsetStatus, reconcile.Result, error) Cleanup(kclient client.Client, reqLogger logr.Logger, kd *kanaryv1alpha1.KanaryStatefulset, canaryDep *appsv1beta1.Deployment, sts *kruisev1alpha1.StatefulSet) (*kanaryv1alpha1.KanaryStatefulsetStatus, reconcile.Result, error) }
Interface traffic strategy interface
func NewKanaryService ¶
func NewKanaryService(s *kanaryv1alpha1.KanaryStatefulsetSpecTraffic) Interface
NewKanaryService returns new traffic.KanaryService instance
func NewMirror ¶
func NewMirror(s *kanaryv1alpha1.KanaryStatefulsetSpecTraffic) Interface
NewMirror returns new traffic.Live instance
Click to show internal directories.
Click to hide internal directories.