From 6daec4c9534d5ce19da29967e47e5eb10971e5a1 Mon Sep 17 00:00:00 2001 From: Thomas Burton Date: Tue, 5 Sep 2023 12:46:37 +0200 Subject: [PATCH] fix: engine should mount only at base path to prevent corrupted engine db --- charts/node/Chart.yaml | 2 +- charts/node/README.md | 2 +- charts/node/templates/engine-statefulset.yaml | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/charts/node/Chart.yaml b/charts/node/Chart.yaml index 4bac8a7..1a91830 100644 --- a/charts/node/Chart.yaml +++ b/charts/node/Chart.yaml @@ -10,6 +10,6 @@ maintainers: type: application -version: 0.2.2 +version: 0.2.3 appVersion: "0.9.0" diff --git a/charts/node/README.md b/charts/node/README.md index 28fde72..345acb2 100644 --- a/charts/node/README.md +++ b/charts/node/README.md @@ -1,6 +1,6 @@ # node -![Version: 0.2.1](https://img.shields.io/badge/Version-0.2.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.9.0](https://img.shields.io/badge/AppVersion-0.9.0-informational?style=flat-square) +![Version: 0.2.2](https://img.shields.io/badge/Version-0.2.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.9.0](https://img.shields.io/badge/AppVersion-0.9.0-informational?style=flat-square) Deploy a Chainflip Validator or Archive node on Kubernetes diff --git a/charts/node/templates/engine-statefulset.yaml b/charts/node/templates/engine-statefulset.yaml index ffc87ba..bbb2748 100644 --- a/charts/node/templates/engine-statefulset.yaml +++ b/charts/node/templates/engine-statefulset.yaml @@ -89,7 +89,7 @@ spec: {{- end }} volumeMounts: - name: data - mountPath: {{ .Values.common.basePath }}/data.db + mountPath: {{ .Values.common.basePath }} - name: keys mountPath: {{ .Values.common.keys.keysPath }} readOnly: true @@ -134,8 +134,10 @@ spec: - name: data persistentVolumeClaim: claimName: {{ .Values.engine.persistence.existingClaim }} - {{- end }} - {{- if eq .Values.engine.persistence.existingClaim "" }} + {{- else }} + - name: data + persistentVolumeClaim: + claimName: data volumeClaimTemplates: - apiVersion: v1 kind: PersistentVolumeClaim