From 9f2ff2d6cb7def9aba8dccdbd45fdb7d54ec660a Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Mon, 2 Oct 2023 11:05:15 +0545 Subject: [PATCH] chore: add upstream env vars to helm chart [skip ci] --- chart/Chart.yaml | 2 +- chart/templates/deployment.yaml | 7 +++++++ chart/values.yaml | 6 ++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/chart/Chart.yaml b/chart/Chart.yaml index c180c0bb..c9a29d46 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -4,6 +4,6 @@ description: A Helm chart for config-db type: application -version: 0.1.0 +version: 0.2.0 appVersion: "0.0.5" diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index 281d47b5..d41d8c2c 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -42,6 +42,9 @@ spec: - --disable-postgrest={{ .Values.disablePostgrest }} - --change-retention-days={{ .Values.configChangeRetentionDays }} - --analysis-retention-days={{ .Values.configAnalysisRetentionDays }} + envFrom: + - secretRef: + name: {{ .Values.upstream.secretKeyRef.name }} env: - name: DB_URL valueFrom: @@ -50,6 +53,10 @@ spec: key: {{ .Values.db.secretKeyRef.key }} - name: NAMESPACE value: {{ .Values.namespace | default .Release.Namespace }} + - name: AGENT_NAME + value: {{ .Values.upstream.agentName }} + - name: UPSTREAM_PAGE_SIZE + value: {{ .Values.upstream.pageSize }} resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.extra }} diff --git a/chart/values.yaml b/chart/values.yaml index 78b82b36..6548c913 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -61,6 +61,12 @@ serviceAccount: name: "" annotations: {} +upstream: + secretKeyRef: + name: upstream + agentName: + pageSize: 500 + extra: {} # nodeSelector: