From 5bbb4f6550d56c5ece4240537060ad071e3cb649 Mon Sep 17 00:00:00 2001 From: Adam Piasecki Date: Tue, 13 May 2025 16:49:19 +0100 Subject: [PATCH] fedora-ostree-pruner: fix jinja2 conditional for content-volume Fix issue with yaml to json conversion. --- .../fedora-ostree-pruner/templates/pvc.yml.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/openshift-apps/fedora-ostree-pruner/templates/pvc.yml.j2 b/roles/openshift-apps/fedora-ostree-pruner/templates/pvc.yml.j2 index 79dde93834..4aceb9e8c3 100644 --- a/roles/openshift-apps/fedora-ostree-pruner/templates/pvc.yml.j2 +++ b/roles/openshift-apps/fedora-ostree-pruner/templates/pvc.yml.j2 @@ -12,12 +12,12 @@ spec: storageClassName: "ocs-storagecluster-cephfs" # fedora-ostree-content-volume-2 is one of two PVs that share # the fedora-ostree-content NetApp volume - {% if env == "production" %} +{% if env == "production" %} volumeName: "fedora-ostree-content-volume-2" - {% elif env == "staging" %} +{% elif env == "staging" %} # fedora-ostree-content-volume-2 is not available in staging volumeName: "fedora-ostree-content-volume-1" - {% endif %} +{% endif %} # These values are mostly ignored since we're using a named # volume, but are required. accessModes: