Skip to content

GRPCRoute doesn't work #3550

@Christoph-Raab

Description

@Christoph-Raab

Describe the bug

The default GRPCRoute doesn't match the spec.

At least one of Service and Method MUST be a non-empty string.

https://gateway-api.sigs.k8s.io/reference/spec/#grpcmethodmatch

Related helm chart

argo-cd

Helm chart version

9.0.5

To Reproduce

server:
  grpcroute:
    enabled: true
    parentRefs:
      - name: example-gateway
        namespace: gateway-system
        sectionName: grpc

This will try to create a GRPCRoute with

    rules:
      - matches:
          - method:
              type: Exact

which will result in an error

GRPCRoute.gateway.networking.k8s.io "argocd-server-grpc" is invalid: spec.rules[0].matches[0].method: Invalid value: "object": One or both of 'service' or 'method' must be specified

This matches the docs spec, see first quote/link above.

Expected behavior

The default GRPCRoute, as described in docs should work out of the box. https://github.com/argoproj/argo-helm/tree/main/charts/argo-cd#gateway-api-with-grpc-support

I'm not sure, what the correct configuration would be here. I tried a RegularExpression regex to match all, but that broke the api completely.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions