Skip to content

Commit

Permalink
[blockscout-stack] Adding custom volume mount to blockscout deployment (
Browse files Browse the repository at this point in the history
  • Loading branch information
nzenchik authored Nov 8, 2024
1 parent 2d1cadd commit 9629b32
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
6 changes: 6 additions & 0 deletions charts/blockscout-stack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# ChangeLog

## 1.8.0

### Feature

- Custom volume mount for blockscout backend deployment

## 1.7.1

### Fix
Expand Down
2 changes: 1 addition & 1 deletion charts/blockscout-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.7.1
version: 1.8.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
16 changes: 16 additions & 0 deletions charts/blockscout-stack/templates/blockscout-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,14 @@ spec:
{{- . | toYaml | nindent 12 }}
{{- end }}
{{- end }}
{{- with .Values.blockscout.volumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.blockscout.volumes }}
volumes:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -324,6 +332,14 @@ spec:
{{- . | toYaml | nindent 12 }}
{{- end }}
{{- end }}
{{- with .Values.blockscout.volumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.blockscout.volumes }}
volumes:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
12 changes: 12 additions & 0 deletions charts/blockscout-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,18 @@ blockscout:
requests:
cpu: 1
memory: 2Gi
# Additional volumes on the output Blockscout Deployment definition.
volumes: []
# - name: foo
# secret:
# secretName: mysecret
# optional: false

# Additional volumeMounts on the output Blockscout Deployment definition.
volumeMounts: []
# - name: foo
# mountPath: "/etc/foo"
# readOnly: true
## Configuration options for frontend
##
frontend:
Expand Down

0 comments on commit 9629b32

Please sign in to comment.