Skip to content

Commit

Permalink
polkabtc-vault: support for env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ns212 committed Mar 2, 2021
1 parent 79021db commit f50f62e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/polkabtc-vault/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.2
version: 0.1.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
9 changes: 9 additions & 0 deletions charts/polkabtc-vault/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ spec:
{{- range .Values.extraArgs }}
- {{ . }}
{{- end }}
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
{{- range .Values.env }}
- name: {{ .name }}
value: {{ .value }}
{{- end }}
envFrom:
- secretRef:
name: {{ .Values.envSecretName }}
Expand Down
1 change: 1 addition & 0 deletions charts/polkabtc-vault/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ envSecretName: ""
keyfileSecretName: ""
networkName: testnet
extraArgs: []
env: []

healthprobes:
enabled: false
Expand Down

0 comments on commit f50f62e

Please sign in to comment.