Mirrormanager: adapt to the new version of generate-worldmap

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2024-07-09 10:33:32 +02:00
parent 3b680accf3
commit f931febe61
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD

View file

@ -35,7 +35,7 @@ spec:
claimName: data claimName: data
{{ security_context() | indent(4) }} {{ security_context() | indent(4) }}
--- ---
# Generate the mirrors location text file # Set the mirrors location in the database
apiVersion: batch/v1 apiVersion: batch/v1
kind: CronJob kind: CronJob
metadata: metadata:
@ -54,20 +54,12 @@ spec:
containers: containers:
- name: mirrormanager - name: mirrormanager
image: image-registry.openshift-image-registry.svc:5000/mirrormanager/mirrormanager2:latest image: image-registry.openshift-image-registry.svc:5000/mirrormanager/mirrormanager2:latest
command: command: ["mm2_generate-worldmap"]
- "mm2_generate-worldmap"
- "--output"
- "/var/lib/mirrormanager/map"
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: "/etc/mirrormanager" mountPath: "/etc/mirrormanager"
- name: var-lib
mountPath: "/var/lib/mirrormanager"
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: config name: config
- name: var-lib
persistentVolumeClaim:
claimName: data
{{ security_context() | indent(4) }} {{ security_context() | indent(4) }}