solo-io / gloo

The Cloud-Native API Gateway and AI Gateway
https://docs.solo.io/
Apache License 2.0
4.1k stars 446 forks source link

Prefix rewrite for specific upstream #8501

Open codepawpaw opened 1 year ago

codepawpaw commented 1 year ago

Version

None

Is your feature request related to a problem? Please describe.

Hi fellas Is it possible to enable prefix rewrite for specific upstream Let me give the illustration with code snippet bellow

        multi:
          destinations:
            - weight: {{ .Values.virtualService.weightVm }}
              destination:
                upstream:
                  name: foo-vm
                  namespace: foo
            - weight: {{ .Values.virtualService.weightGke }}
              destination:
                upstream:
                  name: foo-foo-primaryupstream-80
                  namespace: foo
                  options:
                    prefixRewrite: '/public/'
      options:
        timeout: '60s'

I expect the request prefix gonna be change to be /public after distribute to foo-foo-primaryupstream-80

Describe the solution you'd like

I have no idea how complex its But i think it will be better if we can have options for each upstream destinations

Describe alternatives you've considered

No response

Additional Context

No response

github-actions[bot] commented 4 months ago

This issue has been marked as stale because of no activity in the last 180 days. It will be closed in the next 180 days unless it is tagged "no stalebot" or other activity occurs.