Initial commit

Signed-off-by: Kevin Dorosh <kcdorosh@gmail.com>
This commit is contained in:
Kevin Dorosh
2020-12-22 10:03:41 -05:00
parent 6cf1f35eca
commit e6aefb8f4b
3 changed files with 20 additions and 3 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ import (
clientset "github.com/fluxcd/flagger/pkg/client/clientset/versioned"
)
// GlooRouter is managing Istio virtual services
// GlooRouter is managing Gloo route tables
type GlooRouter struct {
kubeClient kubernetes.Interface
glooClient clientset.Interface
@@ -42,7 +42,7 @@ type GlooRouter struct {
upstreamDiscoveryNs string
}
// Reconcile creates or updates the Istio virtual service
// Reconcile creates or updates the Gloo Edge route table
func (gr *GlooRouter) Reconcile(canary *flaggerv1.Canary) error {
apexName, _, _ := canary.GetServiceNames()
canaryName := fmt.Sprintf("%s-%s-canary-%v", canary.Namespace, apexName, canary.Spec.Service.Port)