Skip to content

Commit

Permalink
support extra envs from various formats
Browse files Browse the repository at this point in the history
  • Loading branch information
josedev-union committed Nov 22, 2024
1 parent 2b23407 commit 01550e5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
12 changes: 12 additions & 0 deletions aptos-indexer-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ spec:
secretKeyRef:
name: aptos-indexer-postgres-password
key: POSTGRES_PASSWORD
{{- range $key, $value := .Values.extraEnv }}
- name: {{ $key | quote}}
value: {{ $value | quote }}
{{- end }}
{{- if .Values.extraEnvRaw }}
{{- toYaml .Values.extraEnvRaw | nindent 12 }}
{{- end }}
envFrom:
{{- range .Values.envFromSecrets }}
- secretRef:
name: {{ tpl . $ | quote }}
{{- end }}
ports:
- containerPort: {{ .Values.healthCheckPort }}
resources:
Expand Down
18 changes: 17 additions & 1 deletion aptos-indexer-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,20 @@ autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 10
targetCPUUtilizationPercentage: 80
targetCPUUtilizationPercentage: 80

# -- Extra environment variables that will be passed into pods
extraEnv: {}
# KEY: VALUE

# -- Extra environment variables in RAW format that will be passed into pods
extraEnvRaw: []
# Load DB password from other secret (e.g. for zalando operator)
# - name: KEY
# valueFrom:
# secretKeyRef:
# name: secret
# key: password

# -- This can be a list of templated strings
envFromSecrets: []

0 comments on commit 01550e5

Please sign in to comment.