fedora-ostree-pruner: add storageClassName to pvc template

Since there is no PV fedora-ostree-content-volume-2 on stg
the volumeName: "fedora-ostree-content-volume-1" was added.
We use ocs-storagecluster-cephfs to keep the ReadWriteMany
functionality. If the RBD volume is required,
then use storageClassName: ocs-storagecluster-ceph-rbd.
ODF will provision a new volume automatically.
ReadWriteMany cannot be used in a Filesystem mode with RBD.
This commit is contained in:
Adam Piasecki 2025-05-13 15:48:18 +01:00 committed by cverna
parent 8483147eb9
commit 9179b26777

View file

@ -8,9 +8,16 @@ kind: PersistentVolumeClaim
metadata:
name: fedora-ostree-content-volume
spec:
# ocs-storagecluster-cephfs to use `ReadWriteMany` functionality
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" %}
volumeName: "fedora-ostree-content-volume-2"
{% elif env == "staging" %}
# fedora-ostree-content-volume-2 is not available in staging
volumeName: "fedora-ostree-content-volume-1"
{% endif %}
# These values are mostly ignored since we're using a named
# volume, but are required.
accessModes: