Skip to content

Commit

Permalink
more flexible env vars (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Hoeft authored Feb 26, 2024
1 parent 0f77c0f commit a910de8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/tsm-node/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ maintainers:
- name: Blockdaemon
email: [email protected]
type: application
version: 0.1.4
version: 0.1.5
appVersion: "61.0.2"
2 changes: 1 addition & 1 deletion charts/tsm-node/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 6 additions & 1 deletion charts/tsm-node/ci/envvars-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
11 changes: 8 additions & 3 deletions charts/tsm-node/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a910de8

Please sign in to comment.