From af7bd3386fc5a4a53a0036fae73387896524f4d6 Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Fri, 4 Oct 2019 15:54:07 -0400 Subject: [PATCH] openshift-apps: fixup fedora-ostree-content-volume PV consumers We can't share the same exact PV into two PVCs in different projects but we can make two PVs for the same NFS share. Let's see if that works. --- .../openshift-apps/coreos-ostree-importer/templates/pvc.yml | 6 ++++-- roles/openshift-apps/fedora-ostree-pruner/templates/pvc.yml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/roles/openshift-apps/coreos-ostree-importer/templates/pvc.yml b/roles/openshift-apps/coreos-ostree-importer/templates/pvc.yml index 0667f4b052..2a32e87658 100644 --- a/roles/openshift-apps/coreos-ostree-importer/templates/pvc.yml +++ b/roles/openshift-apps/coreos-ostree-importer/templates/pvc.yml @@ -7,8 +7,10 @@ kind: PersistentVolumeClaim metadata: name: fedora-ostree-content-volume spec: - volumeName: "fedora-ostree-content-volume" - # This values are mostly ignored since we're using a named + # fedora-ostree-content-volume-1 is one of two PVs that share + # the fedora-ostree-content NetApp volume + volumeName: "fedora-ostree-content-volume-1" + # These values are mostly ignored since we're using a named # volume, but are required. accessModes: - ReadWriteMany diff --git a/roles/openshift-apps/fedora-ostree-pruner/templates/pvc.yml b/roles/openshift-apps/fedora-ostree-pruner/templates/pvc.yml index 0667f4b052..1490dec490 100644 --- a/roles/openshift-apps/fedora-ostree-pruner/templates/pvc.yml +++ b/roles/openshift-apps/fedora-ostree-pruner/templates/pvc.yml @@ -7,8 +7,10 @@ kind: PersistentVolumeClaim metadata: name: fedora-ostree-content-volume spec: - volumeName: "fedora-ostree-content-volume" - # This values are mostly ignored since we're using a named + # fedora-ostree-content-volume-2 is one of two PVs that share + # the fedora-ostree-content NetApp volume + volumeName: "fedora-ostree-content-volume-2" + # These values are mostly ignored since we're using a named # volume, but are required. accessModes: - ReadWriteMany