Skip to content

Commit

Permalink
add extraVolumes, extraVolumeMounts
Browse files Browse the repository at this point in the history
  • Loading branch information
VladStarr committed Apr 13, 2024
1 parent 9b21868 commit cc9fd7a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dysnix/op-geth/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ spec:
mountPath: /secrets
- name: scripts
mountPath: /scripts
{{- with .Values.extraVolumeMounts }}
{{- tpl (toYaml .) $ | nindent 8 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 10 }}
{{- with .Values.sidecarContainers }}
Expand All @@ -276,6 +279,9 @@ spec:
path: {{ .Values.persistence.hostPath.path }}
type: {{ .Values.persistence.hostPath.type }}
{{- end }}
{{- with .Values.extraVolumes }}
{{- tpl (toYaml .) $ | nindent 6 }}
{{- end }}
{{- if eq .Values.persistence.type "pvc" }}
volumeClaimTemplates:
- metadata:
Expand Down
11 changes: 11 additions & 0 deletions dysnix/op-geth/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,17 @@ sidecarContainers: []
# path: /healthz
# port: replica-mon

# Extra volumeMounts for op-geth container, can be templated
extraVolumeMounts: []
# - name: testvolume
# mountPath: /test

# Extra volumes, can be templated
extraVolumes: []
# - name: testvolume
# persistentVolumeClaim:
# claimName: test-pvc

## Services config
services:
rpc:
Expand Down

0 comments on commit cc9fd7a

Please sign in to comment.