mirrormanager: rationalize object names

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2024-01-17 10:21:19 +01:00
parent 001a3f3964
commit 4247d32de7
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
4 changed files with 13 additions and 13 deletions

View file

@ -123,7 +123,7 @@
# Cron jobs
- role: openshift/object
app: mirrormanager
template: cron.yml
file: cron.yml
objectname: cron.yml
- role: openshift/start-build

View file

@ -19,13 +19,13 @@ spec:
image: mirrormanager:latest
command: ["/opt/app-root/bin/mm2_generate-worldmap", "--output", "/var/www/mirrormanager-statistics/map/"]
volumeMounts:
- name: mm-config
- name: config
mountPath: "/etc/mirrormanager"
readOnly: true
volumes:
- name: mm-config
- name: config
configMap:
name: mm-config
name: config
---
apiVersion: batch/v1
kind: CronJob
@ -47,16 +47,16 @@ spec:
image: mirrormanager:latest
command: ["bash", "/opt/scripts/sync-crawler-logs.sh"]
volumeMounts:
- name: mm-config
- name: config
mountPath: "/etc/mirrormanager"
readOnly: true
- name: scripts
mountPath: "/opt/scripts"
readOnly: true
volumes:
- name: mm-config
- name: config
configMap:
name: mm-config
name: config
- name: scripts
configMap:
name: scripts

View file

@ -32,10 +32,10 @@ spec:
ports:
- containerPort: 8080
volumeMounts:
- name: mm-config
- name: config
mountPath: "/etc/mirrormanager"
readOnly: true
- name: mm-secrets
- name: secrets
mountPath: "/etc/mirrormanager-secrets"
readOnly: true
- name: statistics
@ -86,10 +86,10 @@ spec:
# path: "/healthz/live"
# port: 8080
volumes:
- name: mm-config
- name: config
configMap:
name: mirrormanager
- name: mm-secrets
name: config
- name: secrets
secret:
secretName: secrets
- name: statistics

View file

@ -7,7 +7,7 @@ items:
- apiVersion: v1
kind: ConfigMap
metadata:
name: mirrormanager
name: config
labels:
app: mirrormanager
data: