From db6dcc9c2894aaea65f6f1ccae4c868c3103b1c4 Mon Sep 17 00:00:00 2001
From: "Antoine R. Dumont (@ardumont)" <ardumont@softwareheritage.org>
Date: Fri, 17 Mar 2023 15:51:33 +0100
Subject: [PATCH] loader-metadata: Mount credentials path in the right
 container

Refs. swh/infra/sysadm-environment#4794
---
 swh/templates/loader-metadata/deployment.yaml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/swh/templates/loader-metadata/deployment.yaml b/swh/templates/loader-metadata/deployment.yaml
index e78cf26ab..947d19aa1 100644
--- a/swh/templates/loader-metadata/deployment.yaml
+++ b/swh/templates/loader-metadata/deployment.yaml
@@ -52,6 +52,9 @@ spec:
             mountPath: /etc/swh
           - name: configuration-template
             mountPath: /etc/swh/configuration-template
+          - name: metadata-fetcher-credentials
+            mountPath: /etc/credentials/metadata-fetcher
+            readOnly: true
       containers:
       - name: loader-metadata
         image: {{ .Values.swh_loader_metadata_image }}:{{ .Values.swh_loader_metadata_image_version }}
@@ -92,9 +95,6 @@ spec:
             subPath: "pre-stop.sh"
           - name: configuration
             mountPath: /etc/swh
-          - name: metadata-fetcher-credentials
-            mountPath: /etc/credentials/metadata-fetcher
-            readOnly: true
       volumes:
       - name: configuration
         emptyDir: {}
-- 
GitLab