mulimoen opened a new issue, #2620:
URL: https://github.com/apache/apisix-ingress-controller/issues/2620

   ### Current Behavior
   
   I have created an `UDPRoute` [0] and matching listener in a `Gateway` [1]. 
Running `kubectl -n apisix-ingress get gateway/gatty-udp-12345 -o yaml` shows 
no attached route.
   
   
   I noticed `Kind` is not supported between `protocol: UDP` and `UDPRoute` as 
`Gateway` emits the following in the output.
   ```yaml
   supportedKinds:
       - group: gateway.networking.k8s.io
         kind: HTTPRoute
   ```
   I tried overwriting with the `UDPRoute` as in [1], this resulted in 
`supportedKinds` being empty.
   
   [0]
   ```yaml
   apiVersion: gateway.networking.k8s.io/v1alpha2
   kind: UDPRoute
   metadata:
     name: myroute
     namespace: myapp
   spec:
     parentRefs:
       - name: gatty-udp-12345
         namespace: apisix-ingress
     rules:
       - name: myroute
         backendRefs:
           - name: myservice
             port: 12345
   ```
   
   [1]
   ```yaml
   apiVersion: gateway.networking.k8s.io/v1
   kind: Gateway
   metadata:
     name: gatty-udp-12345
     namespace: apisix-ingress
   spec:
     gatewayClassName: apisix-gc
     listeners:
       - protocol: UDP
         port: 12345
         name: udp-12345
         allowedRoutes:
           namespaces:
             from: All
           # kinds:
           #   - group: gateway.networking.k8s.io
           #     kind: UDPRoute
     infrastructure:
       parametersRef:
         group: apisix.apache.org
         kind: GatewayProxy
         name: apisix-config
   ```
   
   ### Expected Behavior
   
   UDPRoute to be attached and can send packets to the gateway which forwards 
to the pod.
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   1. Install the APISIX Ingress controller in traditional mode with the Helm 
chart, updating the image of the ingress controller to the most recent version
   2. Create a route and gateway as described above
   3. Check attached routes using `kubectl -n apisix-ingress get 
gateway/gatty-udp-12345 -o yaml`
   
   ### Environment
   
   - APISIX Ingress controller version (run `apisix-ingress-controller version 
--long`)
   docker image 
[2.0.0-rc5](https://hub.docker.com/layers/apache/apisix-ingress-controller/2.0.0-rc5/images/sha256-566abf199cfff5fd23bcfb7dd8f07f5362b6fb791aa4fd7f10393d51547e680e)
 (it did not work with the original helm chart version either)
   - Kubernetes cluster version (run `kubectl version`)
   Client Version: v1.34.1
   Kustomize Version: v5.7.1
   Server Version: v1.33.1
   - OS version if running APISIX Ingress controller in a bare-metal 
environment (run `uname -a`)
   N/A


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to