From 7bfa888d202b7798d6036bcda1696167a7bd197c Mon Sep 17 00:00:00 2001 From: Pantelis M <52674034+pantmal@users.noreply.github.com> Date: Thu, 5 Jan 2023 17:56:49 +0200 Subject: [PATCH] Mongo pvc fix (#9) * fix(mongo): add condition for pvc * chore: version bump Co-authored-by: Pantelis M --- charts/conduit/Chart.yaml | 2 +- charts/conduit/templates/mongodb/pvc.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/conduit/Chart.yaml b/charts/conduit/Chart.yaml index 2403245..6f78296 100644 --- a/charts/conduit/Chart.yaml +++ b/charts/conduit/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: 0.1.7 +version: 0.1.8 # 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/conduit/templates/mongodb/pvc.yaml b/charts/conduit/templates/mongodb/pvc.yaml index c4aecb6..42ab359 100644 --- a/charts/conduit/templates/mongodb/pvc.yaml +++ b/charts/conduit/templates/mongodb/pvc.yaml @@ -1,3 +1,4 @@ +{{- if .Values.mongodb.enabled -}} {{- range $volume := .Values.mongodb.volumes -}} apiVersion: v1 kind: PersistentVolumeClaim @@ -12,3 +13,4 @@ spec: requests: storage: 5Gi {{- end }} +{{- end }}