diff --git a/charts/tsm-node/Chart.yaml b/charts/tsm-node/Chart.yaml index dfe701f..515c175 100644 --- a/charts/tsm-node/Chart.yaml +++ b/charts/tsm-node/Chart.yaml @@ -5,5 +5,5 @@ maintainers: - name: Blockdaemon email: sre@blockdaemon.com type: application -version: 0.1.4 +version: 0.1.5 appVersion: "61.0.2" diff --git a/charts/tsm-node/README.md b/charts/tsm-node/README.md index 74e4788..8eaddc9 100644 --- a/charts/tsm-node/README.md +++ b/charts/tsm-node/README.md @@ -1,6 +1,6 @@ # tsm-node -![Version: 0.1.4](https://img.shields.io/badge/Version-0.1.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 61.0.2](https://img.shields.io/badge/AppVersion-61.0.2-informational?style=flat-square) +![Version: 0.1.5](https://img.shields.io/badge/Version-0.1.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 61.0.2](https://img.shields.io/badge/AppVersion-61.0.2-informational?style=flat-square) A Helm chart to deploy a Blockdaemon TSM node to kubernetes diff --git a/charts/tsm-node/ci/envvars-values.yaml b/charts/tsm-node/ci/envvars-values.yaml index 9b29356..b9134ff 100644 --- a/charts/tsm-node/ci/envvars-values.yaml +++ b/charts/tsm-node/ci/envvars-values.yaml @@ -2,7 +2,12 @@ replicaCount: 1 index: 0 env: - tsm: node + - name: POD_IP + valueFrom: + fieldRef: + fieldPath: status.podIP + - name: tsm + value: node config: configFile: | diff --git a/charts/tsm-node/templates/deployment.yaml b/charts/tsm-node/templates/deployment.yaml index 1d6ede5..e8c1b07 100644 --- a/charts/tsm-node/templates/deployment.yaml +++ b/charts/tsm-node/templates/deployment.yaml @@ -50,9 +50,14 @@ spec: {{- end }} {{- if .Values.env }} env: - {{- range $key, $value := .Values.env }} - - name: {{ $key }} - value: {{ $value | quote }} + {{- range .Values.env }} + - name: {{ .name }} + {{- if .value }} + value: {{ .value | quote }} + {{- else if .valueFrom }} + valueFrom: + {{- toYaml .valueFrom | nindent 16 }} + {{- end }} {{- end }} {{- end }} livenessProbe: