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 # Cron jobs
- role: openshift/object - role: openshift/object
app: mirrormanager app: mirrormanager
template: cron.yml file: cron.yml
objectname: cron.yml objectname: cron.yml
- role: openshift/start-build - role: openshift/start-build

View file

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

View file

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

View file

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