From 9629b32f6a6bba21f74c365bf573116d727d8478 Mon Sep 17 00:00:00 2001 From: Nick Zenchik <65654967+nzenchik@users.noreply.github.com> Date: Fri, 8 Nov 2024 12:27:18 +0400 Subject: [PATCH] [blockscout-stack] Adding custom volume mount to blockscout deployment (#45) --- charts/blockscout-stack/CHANGELOG.md | 6 ++++++ charts/blockscout-stack/Chart.yaml | 2 +- .../templates/blockscout-deployment.yaml | 16 ++++++++++++++++ charts/blockscout-stack/values.yaml | 12 ++++++++++++ 4 files changed, 35 insertions(+), 1 deletion(-) diff --git a/charts/blockscout-stack/CHANGELOG.md b/charts/blockscout-stack/CHANGELOG.md index b647789..d6b6669 100644 --- a/charts/blockscout-stack/CHANGELOG.md +++ b/charts/blockscout-stack/CHANGELOG.md @@ -1,5 +1,11 @@ # ChangeLog +## 1.8.0 + +### Feature + +- Custom volume mount for blockscout backend deployment + ## 1.7.1 ### Fix diff --git a/charts/blockscout-stack/Chart.yaml b/charts/blockscout-stack/Chart.yaml index 7d752be..a60134a 100644 --- a/charts/blockscout-stack/Chart.yaml +++ b/charts/blockscout-stack/Chart.yaml @@ -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 diff --git a/charts/blockscout-stack/templates/blockscout-deployment.yaml b/charts/blockscout-stack/templates/blockscout-deployment.yaml index de9d8d6..5aac089 100644 --- a/charts/blockscout-stack/templates/blockscout-deployment.yaml +++ b/charts/blockscout-stack/templates/blockscout-deployment.yaml @@ -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 }} @@ -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 }} diff --git a/charts/blockscout-stack/values.yaml b/charts/blockscout-stack/values.yaml index 9306960..35aa29f 100644 --- a/charts/blockscout-stack/values.yaml +++ b/charts/blockscout-stack/values.yaml @@ -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: