From baf78ad275b71ecad48162cc605e8dd48b0dc4d9 Mon Sep 17 00:00:00 2001 From: Ian Stanton Date: Thu, 26 Mar 2026 19:57:54 -0400 Subject: [PATCH] fix(chart): include service port in default apiBaseUrl The default API_BASE_URL omitted the service port, causing the server to return signed upload URLs pointing at port 80 (e.g. http://..svc.cluster.local/upload/). Runners connecting to port 80 would get their TCP packets dropped by iptables on the ClusterIP, causing cache uploads to hang indefinitely at 0%. Fix: include .Values.service.port in the printf format so the default stays consistent with however the service port is configured. Fixes #215 Co-Authored-By: Claude Sonnet 4.6 --- .../github-actions-cache-server/templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/kubernetes/github-actions-cache-server/templates/_helpers.tpl b/install/kubernetes/github-actions-cache-server/templates/_helpers.tpl index 78b6db8..43eb0f5 100644 --- a/install/kubernetes/github-actions-cache-server/templates/_helpers.tpl +++ b/install/kubernetes/github-actions-cache-server/templates/_helpers.tpl @@ -122,7 +122,7 @@ Generate environment variables from config values. - name: PORT value: "3000" - name: API_BASE_URL - value: {{ default (printf "http://%s.%s.svc.cluster.local" (include "github-actions-cache-server.fullname" .) .Release.Namespace) .Values.config.apiBaseUrl | quote }} + value: {{ default (printf "http://%s.%s.svc.cluster.local:%v" (include "github-actions-cache-server.fullname" .) .Release.Namespace .Values.service.port) .Values.config.apiBaseUrl | quote }} - name: ENABLE_DIRECT_DOWNLOADS value: {{ .Values.config.enableDirectDownloads | quote }} - name: CACHE_CLEANUP_OLDER_THAN_DAYS