MirrorManager: add missing definitions for the codecs mount

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2024-09-18 09:50:25 +02:00
parent 117a014f1e
commit c71d1a344c
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
2 changed files with 22 additions and 0 deletions

View file

@ -112,3 +112,16 @@ spec:
storage: 1Gi
storageClassName: ""
volumeName: primary-mirror-archive
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: codecs
spec:
accessModes:
- ReadOnlyMany
resources:
requests:
storage: 1Gi
storageClassName: ""
volumeName: codecs

View file

@ -25,6 +25,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) }}
- name: mirror
@ -33,4 +37,9 @@ spec:
- name: mirror-archive
persistentVolumeClaim:
claimName: primary-mirror-archive
{% if env == 'production' %}
- name: codecs
persistentVolumeClaim:
claimName: codecs
{% endif %}
{{ security_context() }}