Skip to content

Commit

Permalink
feat(helm): add support for env/envFrom (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
cebidhem authored Sep 26, 2023
1 parent 6e7c655 commit 8d11725
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/eth-validator-watcher/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
description: A Helm chart for running eth-validator-watcher
name: eth-validator-watcher
type: application
version: 1.1.0
version: 1.2.0
appVersion: v0.4.2
maintainers:
- name: Alluvial
Expand Down
4 changes: 3 additions & 1 deletion charts/eth-validator-watcher/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# eth-validator-watcher

![Version: 1.1.0](https://img.shields.io/badge/Version-1.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.4.2](https://img.shields.io/badge/AppVersion-v0.4.2-informational?style=flat-square)
![Version: 1.2.0](https://img.shields.io/badge/Version-1.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.4.2](https://img.shields.io/badge/AppVersion-v0.4.2-informational?style=flat-square)

A Helm chart for running eth-validator-watcher

Expand All @@ -18,6 +18,8 @@ A Helm chart for running eth-validator-watcher
| config.beaconType | string | `"other"` | |
| config.beaconUrl | string | `"http://localhost:5052"` | |
| config.watchedKeys | list | `[]` | List of public keys to watch. See https://github.com/kilnfi/eth-validator-watcher/blob/main/README.md#command-lines-examples |
| env | object | `{}` | |
| envFrom | object | `{}` | |
| extraArgs | list | `[]` | |
| extraInitContainers | list | `[]` | |
| fullnameOverride | string | `""` | |
Expand Down
13 changes: 13 additions & 0 deletions charts/eth-validator-watcher/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ spec:
{{- with .Values.extraArgs }}
{{- toYaml . | nindent 10 }}
{{- end }}
env:
{{- with .Values.envFrom }}
{{- range $key, $value := . }}
- name: {{ $key }}
{{- toYaml $value | nindent 12 }}
{{- end }}
{{- end }}
{{- with .Values.env }}
{{- range $key, $value := . }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
{{- with .Values.livenessProbe }}
livenessProbe:
exec:
Expand Down
2 changes: 2 additions & 0 deletions charts/eth-validator-watcher/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ config:
# -- List of public keys to watch. See https://github.com/kilnfi/eth-validator-watcher/blob/main/README.md#command-lines-examples
watchedKeys: []

env: {}
envFrom: {}
extraArgs: []
podAnnotations: {}
podLabels: {}
Expand Down

0 comments on commit 8d11725

Please sign in to comment.