Skip to content

Commit 177bb8b

Browse files
committed
review: conditionally include gateway api in builder
Signed-off-by: Kimonas Sotirchos <kimwnasptd@gmail.com>
1 parent cb9e0e2 commit 177bb8b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

components/notebook-controller/controllers/notebook_controller.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -862,10 +862,8 @@ func (r *NotebookReconciler) SetupWithManager(mgr ctrl.Manager) error {
862862
virtualService.SetAPIVersion("networking.istio.io/v1alpha3")
863863
virtualService.SetKind("VirtualService")
864864
builder.Owns(virtualService)
865-
}
866-
867-
// watch HTTPRoute
868-
if os.Getenv("USE_GATEWAY_API") == "true" {
865+
} else if os.Getenv("USE_GATEWAY_API") == "true" {
866+
// watch HTTPRoute
869867
builder.Owns(&gwapiv1beta1.HTTPRoute{})
870868
}
871869

0 commit comments

Comments
 (0)