Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Kong configuration for functions-v1-all is hardcoded #88

Open
guivin opened this issue Oct 21, 2024 · 1 comment
Open

Kong configuration for functions-v1-all is hardcoded #88

guivin opened this issue Oct 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@guivin
Copy link

guivin commented Oct 21, 2024

Bug report

Describe the bug

The url used in the Kong configuration for functions-v1-all is hardcoded in charts/supabase/templates/kong/config.yaml :

url: http://functions:{{ .Values.functions.service.port }}/

Should be :

 url: http://{{ include "supabase.functions.fullname" . }}:{{ .Values.functions.service.port }}/

To Reproduce

  1. Deploy the Helm with a name other than functions for the edge-function.
  2. Request you function through the Kong gateway : curl -X POST http://$IP:$PORT/functions/v1/ping
  3. Looking the Kong logs you will have a DNS resolution error meaning that the Kong gateway cannot find the functions

Set functions.fullnameOverride to functions in the values.yaml fixes temporary the issue.

Expected behavior

The internal DNS name of the functions should be dynamic to support prefixed resources by Helm

@guivin guivin added the bug Something isn't working label Oct 21, 2024
@joeldomke
Copy link

This seems to be a duplicate of #61

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants