From a00d7db58c905fb18b790798dcc2a84a1d9842d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Tue, 17 Sep 2024 14:50:57 +0200 Subject: [PATCH] Mirrormanager: the nfs mount is only available in prod MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- .../mirrormanager/templates/cron-primary-mirror.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/openshift-apps/mirrormanager/templates/cron-primary-mirror.yml b/roles/openshift-apps/mirrormanager/templates/cron-primary-mirror.yml index 034f88e40c..21a4551a7a 100644 --- a/roles/openshift-apps/mirrormanager/templates/cron-primary-mirror.yml +++ b/roles/openshift-apps/mirrormanager/templates/cron-primary-mirror.yml @@ -1,4 +1,4 @@ -# + ### Primary mirror scanning cron jobs # {% from "_macros.yml" import common_volume_mounts, common_volumes, common_env, security_context with context %} @@ -32,8 +32,10 @@ spec: mountPath: "/srv/pub" - name: mirror-archive mountPath: "/srv/pub/archive" +{% if env == 'production' %} - name: codecs mountPath: "/srv/codecs.fedoraproject.org" +{% endif %} volumes: {{ common_volumes(with_ssh=True) | indent(4) }} - name: mirror @@ -42,8 +44,10 @@ spec: - name: mirror-archive persistentVolumeClaim: claimName: primary-mirror-archive +{% if env == 'production' %} - name: codecs persistentVolumeClaim: claimName: codecs +{% endif %} {{ security_context() | indent(4) }} {% endfor %}