Skip to content

Commit 4c0a26b

Browse files
committed
gatewayapi: return early after creating new http routes
Signed-off-by: Sanskar Jaiswal <[email protected]>
1 parent d4f7662 commit 4c0a26b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/router/gateway_api.go

+1
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ func (gwr *GatewayAPIRouter) Reconcile(canary *flaggerv1.Canary) error {
180180
}
181181
gwr.logger.With("canary", fmt.Sprintf("%s.%s", canary.Name, canary.Namespace)).
182182
Infof("HTTPRoute %s.%s created", route.GetName(), hrNamespace)
183+
return nil
183184
} else if err != nil {
184185
return fmt.Errorf("HTTPRoute %s.%s get error: %w", apexSvcName, hrNamespace, err)
185186
}

pkg/router/gateway_api_v1beta1.go

+1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ func (gwr *GatewayAPIV1Beta1Router) Reconcile(canary *flaggerv1.Canary) error {
162162
}
163163
gwr.logger.With("canary", fmt.Sprintf("%s.%s", canary.Name, canary.Namespace)).
164164
Infof("HTTPRoute %s.%s created", route.GetName(), hrNamespace)
165+
return nil
165166
} else if err != nil {
166167
return fmt.Errorf("HTTPRoute %s.%s get error: %w", apexSvcName, hrNamespace, err)
167168
}

0 commit comments

Comments
 (0)