supabase-kubernetes
supabase-kubernetes copied to clipboard
Kong configuration for functions-v1-all is hardcoded
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
- Deploy the Helm with a name other than
functionsfor the edge-function. - Request you function through the Kong gateway :
curl -X POST http://$IP:$PORT/functions/v1/ping - 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
This seems to be a duplicate of #61