Skip to content

Commit

Permalink
Merge pull request #193 from ethersphere/permanent-jwt
Browse files Browse the repository at this point in the history
  • Loading branch information
vandot authored Nov 28, 2022
2 parents ac00a04 + 8a090c6 commit e586c78
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/nethermind/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: nethermind
description: A Helm chart for Ethereum Nethermind client
type: application
version: 0.2.0
version: 0.2.1
icon: https://github.com/NethermindEth/nethermind/raw/master/Nethermind.png
keywords:
- ethereum
Expand Down
20 changes: 20 additions & 0 deletions charts/nethermind/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{- if .Values.jwt -}}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "nethermind.fullname" . }}-env
labels:
{{- include "nethermind.labels" . | nindent 4 }}
data:
{{- range $key, $value := .Values.secretEnv }}
{{ $key }}: {{ $value | b64enc }}
{{- end }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ include "nethermind.fullname" . }}-jwt
type: Opaque
data:
jwt: {{ .Values.jwt | b64enc }}
{{- end -}}
14 changes: 12 additions & 2 deletions charts/nethermind/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ spec:
volumeMounts:
- name: data
mountPath: {{ .Values.volumes.data.mountPath }}
{{- if .Values.config -}}
{{- if .Values.jwt }}
- name: jwt
mountPath: {{ .Values.volumes.jwt.mountPath }}
readOnly: true
{{- end }}
{{- if .Values.config }}
- name: config
mountPath: {{ .Values.volumes.config.mountPath }}/custom.cfg
subPath: custom.cfg
Expand All @@ -83,7 +88,12 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- if .Values.config -}}
{{- if .Values.jwt }}
- name: jwt
secret:
secretName: {{ include "nethermind.fullname" . }}-jwt
{{- end }}
{{- if .Values.config }}
- name: config
configMap:
name: {{ include "nethermind.fullname" . }}-configmap
Expand Down
4 changes: 3 additions & 1 deletion charts/nethermind/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ image:
repository: nethermind/nethermind
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "1.14.0"
tag: "1.14.6"
args: [
"--config",
"mainnet"]
Expand All @@ -20,6 +20,8 @@ fullnameOverride: ""
volumes:
data:
mountPath: /nethermind/nethermind_db
jwt:
mountPath: /nethermind/secrets
config:
mountPath: /nethermind/configs/custom.cfg

Expand Down

0 comments on commit e586c78

Please sign in to comment.