mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
Create Kubernetes services before deployments because Envoy's readiness depends on existing ClusterIPs
14 lines
384 B
Go
14 lines
384 B
Go
package router
|
|
|
|
import (
|
|
flaggerv1 "github.com/weaveworks/flagger/pkg/apis/flagger/v1alpha3"
|
|
)
|
|
|
|
// KubernetesRouter manages Kubernetes services
|
|
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
|
|
}
|