From a0af4cd314268d7f4d26509c55ebcca647578dc2 Mon Sep 17 00:00:00 2001 From: Jeff Zellner Date: Thu, 9 Jan 2025 10:55:19 -0700 Subject: [PATCH] add proxy support to garbage collector (#110) ### Changelog Fix: Add HTTP proxy support to garbage collector ### Docs None ### Description Add HTTP proxying support to garbage collector cronjob. --- charts/primary-site/Chart.yaml | 2 +- .../templates/cronjobs/garbage-collector.yaml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/primary-site/Chart.yaml b/charts/primary-site/Chart.yaml index e06eda2..811ac7c 100644 --- a/charts/primary-site/Chart.yaml +++ b/charts/primary-site/Chart.yaml @@ -13,6 +13,6 @@ type: application # 1.0.0-alpha.0 # 1.0.0-alpha.1 # 1.0.0 -version: "0.0.56" +version: "0.0.57" appVersion: "b5ab5dc7bd5ef765d43830423ea4465d3bb016b1" diff --git a/charts/primary-site/templates/cronjobs/garbage-collector.yaml b/charts/primary-site/templates/cronjobs/garbage-collector.yaml index ce630dd..8121d0b 100644 --- a/charts/primary-site/templates/cronjobs/garbage-collector.yaml +++ b/charts/primary-site/templates/cronjobs/garbage-collector.yaml @@ -79,6 +79,14 @@ spec: value: "true" - name: PRIMARY_SITE_VERSION value: "{{ .Chart.Version }}" + {{- if .Values.globals.proxy.enabled }} + - name: HTTP_PROXY + value: {{ .Values.globals.proxy.httpProxy }} + - name: HTTPS_PROXY + value: {{ .Values.globals.proxy.httpsProxy }} + - name: NO_PROXY + value: {{ .Values.globals.proxy.noProxy }} + {{- end }} {{- range $item := .Values.garbageCollector.deployment.env }} - name: {{ $item.name }} value: {{ $item.value | quote}}