Skip to content

Commit

Permalink
chore: add upstream env vars to helm chart
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
adityathebe committed Oct 2, 2023
1 parent 5e994f6 commit 9f2ff2d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
7 changes: 7 additions & 0 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down
6 changes: 6 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ serviceAccount:
name: ""
annotations: {}

upstream:
secretKeyRef:
name: upstream
agentName:
pageSize: 500

extra:
{}
# nodeSelector:
Expand Down

0 comments on commit 9f2ff2d

Please sign in to comment.