fedora-ostree-pruner: fix jinja2 conditional for content-volume

Fix issue with yaml to json conversion.
This commit is contained in:
Adam Piasecki 2025-05-13 16:49:19 +01:00
parent f8d06a6812
commit 5bbb4f6550

View file

@ -12,12 +12,12 @@ spec:
storageClassName: "ocs-storagecluster-cephfs" storageClassName: "ocs-storagecluster-cephfs"
# fedora-ostree-content-volume-2 is one of two PVs that share # fedora-ostree-content-volume-2 is one of two PVs that share
# the fedora-ostree-content NetApp volume # the fedora-ostree-content NetApp volume
{% if env == "production" %} {% if env == "production" %}
volumeName: "fedora-ostree-content-volume-2" volumeName: "fedora-ostree-content-volume-2"
{% elif env == "staging" %} {% elif env == "staging" %}
# fedora-ostree-content-volume-2 is not available in staging # fedora-ostree-content-volume-2 is not available in staging
volumeName: "fedora-ostree-content-volume-1" volumeName: "fedora-ostree-content-volume-1"
{% endif %} {% endif %}
# These values are mostly ignored since we're using a named # These values are mostly ignored since we're using a named
# volume, but are required. # volume, but are required.
accessModes: accessModes: