Add helper function to make Gateway for the work of splitting Gateway (#4863)
Add helper function to make Gateway for the work of splitting Gateway (#4863)

* add helper function to make Gatewway for the work of splitting Gateway

* address comments

* preallecation for slice

knative/networking,knative/networking