Documentation ¶
Index ¶
- type AppMeshRouter
- func (ar *AppMeshRouter) GetRoutes(canary *flaggerv1.Canary) (primaryWeight int, canaryWeight int, mirrored bool, err error)
- func (ar *AppMeshRouter) Reconcile(canary *flaggerv1.Canary) error
- func (ar *AppMeshRouter) SetRoutes(canary *flaggerv1.Canary, primaryWeight int, canaryWeight int, mirrored bool) error
- type ContourRouter
- func (cr *ContourRouter) GetRoutes(canary *flaggerv1.Canary) (primaryWeight int, canaryWeight int, mirrored bool, err error)
- func (cr *ContourRouter) Reconcile(canary *flaggerv1.Canary) error
- func (cr *ContourRouter) SetRoutes(canary *flaggerv1.Canary, primaryWeight int, canaryWeight int, mirrored bool) error
- type Factory
- type GlooRouter
- func (gr *GlooRouter) GetRoutes(canary *flaggerv1.Canary) (primaryWeight int, canaryWeight int, mirrored bool, err error)
- func (gr *GlooRouter) Reconcile(canary *flaggerv1.Canary) error
- func (gr *GlooRouter) SetRoutes(canary *flaggerv1.Canary, primaryWeight int, canaryWeight int, mirrored bool) error
- type IngressRouter
- func (i *IngressRouter) GetAnnotationWithPrefix(suffix string) string
- func (i *IngressRouter) GetRoutes(canary *flaggerv1.Canary) (primaryWeight int, canaryWeight int, mirrored bool, err error)
- func (i *IngressRouter) Reconcile(canary *flaggerv1.Canary) error
- func (i *IngressRouter) SetRoutes(canary *flaggerv1.Canary, primaryWeight int, canaryWeight int, mirrored bool) error
- type Interface
- type IstioRouter
- func (ir *IstioRouter) GetRoutes(canary *flaggerv1.Canary) (primaryWeight int, canaryWeight int, mirrored bool, err error)
- func (ir *IstioRouter) Reconcile(canary *flaggerv1.Canary) error
- func (ir *IstioRouter) SetRoutes(canary *flaggerv1.Canary, primaryWeight int, canaryWeight int, mirrored bool) error
- type KubernetesDeploymentRouter
- func (c *KubernetesDeploymentRouter) GetRoutes(canary *flaggerv1.Canary) (primaryRoute int, canaryRoute int, err error)
- func (c *KubernetesDeploymentRouter) Initialize(canary *flaggerv1.Canary) error
- func (c *KubernetesDeploymentRouter) Reconcile(canary *flaggerv1.Canary) error
- func (c *KubernetesDeploymentRouter) SetRoutes(canary *flaggerv1.Canary, primaryRoute int, canaryRoute int) error
- type KubernetesNoopRouter
- type KubernetesRouter
- type NopRouter
- type SmiRouter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppMeshRouter ¶
type AppMeshRouter struct {
// contains filtered or unexported fields
}
AppMeshRouter is managing AppMesh virtual services
func (*AppMeshRouter) GetRoutes ¶
func (ar *AppMeshRouter) GetRoutes(canary *flaggerv1.Canary) ( primaryWeight int, canaryWeight int, mirrored bool, err error, )
GetRoutes returns the destinations weight for primary and canary
type ContourRouter ¶
type ContourRouter struct {
// contains filtered or unexported fields
}
ContourRouter is managing HTTPProxy objects
func (*ContourRouter) GetRoutes ¶
func (cr *ContourRouter) GetRoutes(canary *flaggerv1.Canary) ( primaryWeight int, canaryWeight int, mirrored bool, err error, )
GetRoutes returns the service weight for primary and canary
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func NewFactory(kubeConfig *restclient.Config, kubeClient kubernetes.Interface, flaggerClient clientset.Interface, ingressAnnotationsPrefix string, logger *zap.SugaredLogger, meshClient clientset.Interface) *Factory
func (*Factory) KubernetesRouter ¶
func (factory *Factory) KubernetesRouter(kind string, labelSelector string, annotations map[string]string, ports map[string]int32) KubernetesRouter
KubernetesDeploymentRouter returns a ClusterIP service router
func (*Factory) MeshRouter ¶
MeshRouter returns a service mesh router
type GlooRouter ¶
type GlooRouter struct {
// contains filtered or unexported fields
}
GlooRouter is managing Istio virtual services
func (*GlooRouter) GetRoutes ¶
func (gr *GlooRouter) GetRoutes(canary *flaggerv1.Canary) ( primaryWeight int, canaryWeight int, mirrored bool, err error, )
GetRoutes returns the destinations weight for primary and canary
type IngressRouter ¶
type IngressRouter struct {
// contains filtered or unexported fields
}
func (*IngressRouter) GetAnnotationWithPrefix ¶
func (i *IngressRouter) GetAnnotationWithPrefix(suffix string) string
type IstioRouter ¶
type IstioRouter struct {
// contains filtered or unexported fields
}
IstioRouter is managing Istio virtual services
func (*IstioRouter) GetRoutes ¶
func (ir *IstioRouter) GetRoutes(canary *flaggerv1.Canary) ( primaryWeight int, canaryWeight int, mirrored bool, err error, )
GetRoutes returns the destinations weight for primary and canary
type KubernetesDeploymentRouter ¶
type KubernetesDeploymentRouter struct {
// contains filtered or unexported fields
}
KubernetesDeploymentRouter is managing ClusterIP services
func (*KubernetesDeploymentRouter) Initialize ¶
func (c *KubernetesDeploymentRouter) Initialize(canary *flaggerv1.Canary) error
Initialize creates the primary and canary services
type KubernetesNoopRouter ¶
type KubernetesNoopRouter struct { }
KubernetesNoopRouter manages nothing. This is useful when one uses Flagger for progressive delivery of services that are not load-balanced by a Kubernetes service
func (*KubernetesNoopRouter) Initialize ¶
func (c *KubernetesNoopRouter) Initialize(canary *flaggerv1.Canary) error
type KubernetesRouter ¶
type KubernetesRouter interface { // Initialize creates or updates the primary and canary services Initialize(canary *flaggerv1.Canary) error // Reconcile creates or updates the main service Reconcile(canary *flaggerv1.Canary) error }
KubernetesRouter manages Kubernetes services
type NopRouter ¶
type NopRouter struct { }
NopRouter no-operation router
type SmiRouter ¶
type SmiRouter struct {
// contains filtered or unexported fields
}
func (*SmiRouter) GetRoutes ¶
func (sr *SmiRouter) GetRoutes(canary *flaggerv1.Canary) ( primaryWeight int, canaryWeight int, mirrored bool, err error, )
GetRoutes returns the destinations weight for primary and canary