Skip to content

Commit bf22ae4

Browse files
committed
Refactor frontend API URL generation in Helm chart
- Update the frontend.apiUrl helper function to directly use .Values.apiUrl, simplifying the logic for API URL configuration. - This change enhances the flexibility of API URL settings by allowing direct user-defined values.
1 parent b6f6c29 commit bf22ae4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

helm/charts/frontend/templates/_helpers.tpl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ Frontend-specific API URL generation.
5555
This provides a frontend-specific override if needed.
5656
*/}}
5757
{{- define "frontend.apiUrl" -}}
58-
{{- $frontend := .Values.frontend | default dict -}}
59-
{{- if $frontend.apiUrl }}
60-
{{- $frontend.apiUrl | quote }}
58+
{{- if .Values.apiUrl }}
59+
{{- .Values.apiUrl | quote }}
6160
{{- else }}
6261
{{- $backendService := printf "%s-backend" .Release.Name }}
6362
{{- $port := "8800" }}

0 commit comments

Comments
 (0)