diff --git a/README.md b/README.md index 2d9e59918..048aec304 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ spec: # Istio gateways (optional) gateways: - public-gateway.istio-system.svc.cluster.local + - mesh # Istio virtual service host names (optional) hosts: - podinfo.example.com diff --git a/artifacts/ab-testing/canary.yaml b/artifacts/ab-testing/canary.yaml index f513fb049..226a8c745 100644 --- a/artifacts/ab-testing/canary.yaml +++ b/artifacts/ab-testing/canary.yaml @@ -23,6 +23,7 @@ spec: # Istio gateways (optional) gateways: - public-gateway.istio-system.svc.cluster.local + - mesh # Istio virtual service host names (optional) hosts: - abtest.istio.weavedx.com diff --git a/artifacts/canaries/canary.yaml b/artifacts/canaries/canary.yaml index 451ae62af..4599291c2 100644 --- a/artifacts/canaries/canary.yaml +++ b/artifacts/canaries/canary.yaml @@ -23,6 +23,7 @@ spec: # Istio gateways (optional) gateways: - public-gateway.istio-system.svc.cluster.local + - mesh # Istio virtual service host names (optional) hosts: - app.istio.weavedx.com diff --git a/artifacts/configs/canary.yaml b/artifacts/configs/canary.yaml index f4d88afbd..c2a853f3d 100644 --- a/artifacts/configs/canary.yaml +++ b/artifacts/configs/canary.yaml @@ -23,6 +23,7 @@ spec: # Istio gateways (optional) gateways: - public-gateway.istio-system.svc.cluster.local + - mesh # Istio virtual service host names (optional) hosts: - app.iowa.weavedx.com diff --git a/docs/gitbook/how-it-works.md b/docs/gitbook/how-it-works.md index bd4ba089f..7940d0d50 100644 --- a/docs/gitbook/how-it-works.md +++ b/docs/gitbook/how-it-works.md @@ -38,6 +38,7 @@ spec: # Istio gateways (optional) gateways: - public-gateway.istio-system.svc.cluster.local + - mesh # Istio virtual service host names (optional) hosts: - podinfo.example.com @@ -122,6 +123,7 @@ spec: # Istio gateways (optional) gateways: - public-gateway.istio-system.svc.cluster.local + - mesh # Istio virtual service host names (optional) hosts: - frontend.example.com diff --git a/docs/gitbook/usage/ab-testing.md b/docs/gitbook/usage/ab-testing.md index 1578f4c93..e984e052d 100644 --- a/docs/gitbook/usage/ab-testing.md +++ b/docs/gitbook/usage/ab-testing.md @@ -60,6 +60,7 @@ spec: # Istio gateways (optional) gateways: - public-gateway.istio-system.svc.cluster.local + - mesh # Istio virtual service host names (optional) hosts: - app.example.com diff --git a/docs/gitbook/usage/progressive-delivery.md b/docs/gitbook/usage/progressive-delivery.md index 2e9063a60..c6ede76a3 100644 --- a/docs/gitbook/usage/progressive-delivery.md +++ b/docs/gitbook/usage/progressive-delivery.md @@ -54,6 +54,7 @@ spec: # Istio gateways (optional) gateways: - public-gateway.istio-system.svc.cluster.local + - mesh # Istio virtual service host names (optional) hosts: - app.example.com diff --git a/pkg/router/istio.go b/pkg/router/istio.go index b65bae7ac..40370d10f 100644 --- a/pkg/router/istio.go +++ b/pkg/router/istio.go @@ -50,7 +50,9 @@ func (ir *IstioRouter) Reconcile(canary *flaggerv1.Canary) error { break } } - if !hasMeshGateway { + + // set default mesh gateway if no gateway is specified + if !hasMeshGateway && len(canary.Spec.Service.Gateways) == 0 { gateways = append(gateways, "mesh") }