MirrorManager: add the secrets mount to all deploymentconfigs

The crawlers need it when they import the Flask app, or we get:
```
FileNotFoundError: [Errno 2] No such file or directory: '/etc/mirrormanager-secrets/client_secrets.json'
```

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2025-03-13 09:20:37 +01:00
parent a6177a5e52
commit 6687bfb589
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
2 changed files with 6 additions and 6 deletions

View file

@ -2,6 +2,9 @@
- name: config
mountPath: "/etc/mirrormanager"
readOnly: true
- name: secrets
mountPath: "/etc/mirrormanager-secrets"
readOnly: true
- name: scripts
mountPath: "/opt/scripts"
readOnly: true
@ -39,6 +42,9 @@
- name: config
configMap:
name: config
- name: secrets
secret:
secretName: secrets
- name: var-lib
persistentVolumeClaim:
claimName: data

View file

@ -56,15 +56,9 @@ spec:
volumeMounts:
{{ common_volume_mounts() }}
- name: secrets
mountPath: "/etc/mirrormanager-secrets"
readOnly: true
volumes:
{{ common_volumes() }}
- name: secrets
secret:
secretName: secrets
{{ security_context() }}
triggers: