From 617596f5f55742a490b1c686ebd87efa74ad6410 Mon Sep 17 00:00:00 2001 From: Ferran Llamas Date: Fri, 26 Jan 2024 17:33:03 +0100 Subject: [PATCH] Fix persitent volume claim for chart (#1779) --- .github/workflows/release.yml | 3 +-- charts/nucliadb/templates/sts.yaml | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 24f3e4c8fa..c61dd6966f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -175,8 +175,7 @@ jobs: - name: Set helm package image id: version_step run: |- - VERSION=`cat VERSION` - HELM_PACKAGE_VERSION=$VERSION+${{ steps.env-vars.outputs.short_sha }} + HELM_PACKAGE_VERSION=`cat VERSION` NUCLIADB_IMAGE_VERSION=${{ steps.env-vars.outputs.short_sha }} sed -i.bak "s#99999.99999.99999#$NUCLIADB_IMAGE_VERSION#" ./charts/nucliadb/Chart.yaml echo "helm_package_version=$HELM_PACKAGE_VERSION" >> $GITHUB_OUTPUT diff --git a/charts/nucliadb/templates/sts.yaml b/charts/nucliadb/templates/sts.yaml index 83d41b2a30..66c42ebad4 100644 --- a/charts/nucliadb/templates/sts.yaml +++ b/charts/nucliadb/templates/sts.yaml @@ -102,7 +102,9 @@ spec: - name: ndb-pv mountPath: /data volumeClaimTemplates: - - metadata: + - apiVersion: v1 + kind: PersistentVolumeClaim + metadata: name: ndb-pv spec: accessModes: [ "ReadWriteOnce" ]