From 8fffd742cfb271e87795a34014870b3696305b6e Mon Sep 17 00:00:00 2001 From: naki3004 <45875285+naki3004@users.noreply.github.com> Date: Fri, 4 Apr 2025 02:24:01 +0530 Subject: [PATCH] functions name resolution failed error resolved When deployed to k8s using helm, the service name was not picking dynamically according to chart name. Have removed the hardcoded service and name and added chart name as the URL in kong declarative configuration. --- charts/supabase/templates/kong/config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/supabase/templates/kong/config.yaml b/charts/supabase/templates/kong/config.yaml index 2edd25af..7692e834 100644 --- a/charts/supabase/templates/kong/config.yaml +++ b/charts/supabase/templates/kong/config.yaml @@ -177,7 +177,7 @@ data: {{- if .Values.functions.enabled }} - name: functions-v1 _comment: 'Edge Functions: /functions/v1/* -> http://{{ include "supabase.functions.fullname" . }}:{{ .Values.functions.service.port }}/*' - url: http://functions:{{ .Values.functions.service.port }}/ + url: http://{{ include "supabase.functions.fullname" . }}:{{ .Values.functions.service.port }}/ routes: - name: functions-v1-all strip_path: true @@ -230,4 +230,4 @@ data: config: hide_credentials: true {{- end }} -{{- end }} \ No newline at end of file +{{- end }}