From f50f62ec2b0b2e4054538672d546326d29ec2f2a Mon Sep 17 00:00:00 2001 From: ns212 Date: Tue, 2 Mar 2021 10:38:32 +0000 Subject: [PATCH] polkabtc-vault: support for env variables --- charts/polkabtc-vault/Chart.yaml | 2 +- charts/polkabtc-vault/templates/deployment.yaml | 9 +++++++++ charts/polkabtc-vault/values.yaml | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/charts/polkabtc-vault/Chart.yaml b/charts/polkabtc-vault/Chart.yaml index 9b5358a..b87446f 100644 --- a/charts/polkabtc-vault/Chart.yaml +++ b/charts/polkabtc-vault/Chart.yaml @@ -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 diff --git a/charts/polkabtc-vault/templates/deployment.yaml b/charts/polkabtc-vault/templates/deployment.yaml index ef3d7de..bc27051 100644 --- a/charts/polkabtc-vault/templates/deployment.yaml +++ b/charts/polkabtc-vault/templates/deployment.yaml @@ -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 }} diff --git a/charts/polkabtc-vault/values.yaml b/charts/polkabtc-vault/values.yaml index e9199fd..af700b3 100644 --- a/charts/polkabtc-vault/values.yaml +++ b/charts/polkabtc-vault/values.yaml @@ -17,6 +17,7 @@ envSecretName: "" keyfileSecretName: "" networkName: testnet extraArgs: [] +env: [] healthprobes: enabled: false