mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-25 11:00:32 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user