Gateway API's generated HTTPRoute must allow for a parentRefs to select the gateway namespace
## Summary
Generated HTTPRoutes cannot attach to a Gateway object outside the gitlab deployment namespace.
## Steps to reproduce
Generate HTTPRoutes with parentRefs whose:
- 'name' property is "envoy-external" (ie a non Gitlab created Gateway object)
- 'namespace' property is [undefined](https://gitlab.com/gitlab-org/charts/gitlab/-/blame/master/charts/minio/templates/httproute.yaml#L16)
```
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
labels:
app: webservice
chart: webservice-9.8.0
heritage: Helm
release: gitlab
name: gitlab-gitlab
namespace: axiomes-core-ci
spec:
hostnames:
- gitlab.example.com
parentRefs:
- name: envoy-external
sectionName: gitlab-web
# missing => namespace:
rules:
- backendRefs:
- kind: Service
name: gitlab-webservice-default
port: 8181
weight: 1
matches:
- path:
type: PathPrefix
value: /
```
Generate a Gateway object as follow:
```
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: envoy-external
namespace: generic-network-envoy-gateway
spec:
gatewayClassName: envoy-external
listeners:
- allowedRoutes:
namespaces:
from: All
hostname: gitlab.example.com
name: gitlab-web
port: 443
protocol: HTTPS
tls:
certificateRefs:
- name: example-com-tls
mode: Terminate
```
## Configuration used
See previous section.
## Current behavior
The Helm chart produces a HTTPRoute with no namespace defined (ie falling back to the namespace where the HTTPRoute object is defined => gitlab's namespace).
When the Gateway object is declared in a namespace outside Gitlab's namespace, the HTTPRoute object will not attach to the gateway (even if the Gateway accepts HTTPRoute from every namespace (`allowedRoutes .namespaces.from:All`)).
## Expected behavior
Allow users to specify the HTTPRoute's parentRefs's namespace for the HTTPRoute to attach to the custom Gateway
## Versions
- Chart: v9.8.0
- Platform:
- Self-hosted: Unmanaged k8s
- Kubernetes:
- Client: 1.35
- Server: 1.31
- Helm: (`helm version`)
- Client: 3.19
- Server: ?
## Relevant logs
None
<!-- template sourced from https://gitlab.com/gitlab-org/charts/gitlab/-/blob/master/.gitlab/issue_templates/default.md -->
issue