Add a service mesh provider of type none

To be used for Kubernetes blue/green deployments with the no-operations router
This commit is contained in:
stefanprodan
2019-06-19 12:02:40 +03:00
parent 8d1cc83405
commit 9fada306f0
2 changed files with 11 additions and 15 deletions
+2
View File
@@ -45,6 +45,8 @@ func (factory *Factory) KubernetesRouter(label string, ports *map[string]int32)
// MeshRouter returns a service mesh router
func (factory *Factory) MeshRouter(provider string) Interface {
switch {
case provider == "none":
return &NopRouter{}
case provider == "nginx":
return &IngressRouter{
logger: factory.logger,