From 4a6b2cf0235c95cf636e20d1e0b2f5ba01a17a17 Mon Sep 17 00:00:00 2001 From: Cezar Guimaraes Date: Mon, 23 Oct 2023 07:47:44 -0300 Subject: [PATCH] Allows using a custom proxy URL --- helm/Chart.yaml | 2 +- helm/templates/_goproxy.tpl | 2 +- helm/values.yaml | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index b5861d3..53ea66f 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -4,7 +4,7 @@ description: A Helm chart for Kubernetes type: application -version: 0.1.1 +version: 0.2.0 appVersion: "0.1.0" diff --git a/helm/templates/_goproxy.tpl b/helm/templates/_goproxy.tpl index 9292b49..4a1e400 100644 --- a/helm/templates/_goproxy.tpl +++ b/helm/templates/_goproxy.tpl @@ -5,6 +5,6 @@ {{- $athensCtx := dict "Values" $athens "Release" $.Release "Chart" $athensChart -}} http://{{- template "fullname" $athensCtx }}.{{ $.Release.Namespace }}.svc.cluster.local {{- else -}} -https://proxy.golang.org +{{ $.Values.goproxy }} {{- end }} {{- end}} diff --git a/helm/values.yaml b/helm/values.yaml index 2b2341d..dfaccd4 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -21,9 +21,13 @@ redis: auth: enabled: false -# pkgsite specific valuesl +# pkgsite specific values bypassLicenseCheck: true +# goproxy sets the module mirror URL to use. This is ignored when athens-proxy +# is enabled. +goproxy: "https://proxy.golang.org" + seed: packages: - std@latest