mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
Set default mesh gateway if no gateway is specified
This commit is contained in:
+3
-1
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user