From 458da4f22ed1a0dd014c44bbf32c578acda8bd68 Mon Sep 17 00:00:00 2001 From: Marc Hermans Date: Mon, 11 Nov 2024 23:50:18 +0100 Subject: [PATCH] Mount the private key needed for github auth --- .../templates/deployment.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Charts/ldtteam-authentication-server/templates/deployment.yaml b/Charts/ldtteam-authentication-server/templates/deployment.yaml index fb1b1df..139dd0f 100644 --- a/Charts/ldtteam-authentication-server/templates/deployment.yaml +++ b/Charts/ldtteam-authentication-server/templates/deployment.yaml @@ -49,6 +49,10 @@ spec: - name: appsettings mountPath: /app/appsettings.json subPath: appsettings.json + - name: secrets + mountPath: /app/privateKey.pem + readOnly: true + subPath: privateKey.pem env: {{- include "ldtteam-authentication-server.envFromSecret" (merge (dict "Secret" "Discord.BotToken") .) | nindent 12}} {{- include "ldtteam-authentication-server.envFromSecret" (merge (dict "Secret" "Discord.ClientSecret") .) | nindent 12}} @@ -61,4 +65,10 @@ spec: volumes: - name: appsettings configMap: - name: {{ include "ldtteam-authentication-server.fullname" . }} + name: {{ include "ldtteam-authentication-server.fullname" . }} + - name: secrets + secret: + secretName: {{ include "ldtteam-authentication-server.fullname" . }} + items: + - key: Github.PrivateKey + path: privateKey.pem \ No newline at end of file