Skip to content

Commit

Permalink
fix: helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Oct 2, 2023
1 parent a600a25 commit 344ed57
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 7 additions & 3 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ spec:
- --disable-postgrest={{ .Values.disablePostgrest }}
- --change-retention-days={{ .Values.configChangeRetentionDays }}
- --analysis-retention-days={{ .Values.configAnalysisRetentionDays }}
{{- if .Values.upstream.enabled}}
envFrom:
- secretRef:
name: {{ .Values.upstream.secretKeyRef.name }}
name: {{ .Values.upstream.secretKeyRef.name }}
{{- end}}
env:
- name: DB_URL
valueFrom:
Expand All @@ -53,10 +55,12 @@ spec:
key: {{ .Values.db.secretKeyRef.key }}
- name: NAMESPACE
value: {{ .Values.namespace | default .Release.Namespace }}
{{- if .Values.upstream.enabled}}
- name: AGENT_NAME
value: {{ .Values.upstream.agentName }}
value: '{{ .Values.upstream.agentName }}'
- name: UPSTREAM_PAGE_SIZE
value: {{ .Values.upstream.pageSize }}
value: '{{ .Values.upstream.pageSize }}'
{{- end}}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.extra }}
Expand Down
5 changes: 3 additions & 2 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ serviceAccount:
annotations: {}

upstream:
enabled: true
secretKeyRef:
name: upstream
agentName:
name: upstream # Must contain: UPSTREAM_USER, UPSTREAM_PASS & UPSTREAM_HOST
agentName: default-agent
pageSize: 500

extra:
Expand Down

0 comments on commit 344ed57

Please sign in to comment.