Documentation ¶
Index ¶
Constants ¶
View Source
const (
MetricsProviderServiceSuffix = ":service"
)
Variables ¶
This section is empty.
Functions ¶
func CallEventWebhook ¶
func CallWebhook ¶
func CallWebhook(canary flaggerv1.Canary, phase flaggerv1.CanaryPhase, w flaggerv1.CanaryWebhook) error
CallWebhook does a HTTP POST to an external service and returns an error if the response status code is non-2xx
Types ¶
type CanaryJob ¶
CanaryJob holds the reference to a canary deployment schedule
func (CanaryJob) GetCanaryAnalysisInterval ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is managing the canary objects and schedules canary deployments
func NewController ¶
func NewController( kubeClient kubernetes.Interface, flaggerClient clientset.Interface, flaggerInformers Informers, flaggerWindow time.Duration, logger *zap.SugaredLogger, notifier notifier.Interface, canaryFactory *canary.Factory, routerFactory *router.Factory, observerFactory *observers.Factory, meshProvider string, version string, eventWebhook string, clusterName string, noCrossNamespaceRefs bool, ) *Controller
func (*Controller) Run ¶
func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error
Run starts the K8s workers and the canary scheduler
type Informers ¶
type Informers struct { CanaryInformer flaggerinformers.CanaryInformer MetricInformer flaggerinformers.MetricTemplateInformer AlertInformer flaggerinformers.AlertProviderInformer }
Click to show internal directories.
Click to hide internal directories.