Skip to content

Commit

Permalink
Mount the private key needed for github auth
Browse files Browse the repository at this point in the history
  • Loading branch information
marchermans committed Nov 11, 2024
1 parent bb2048d commit 458da4f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Charts/ldtteam-authentication-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand All @@ -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

0 comments on commit 458da4f

Please sign in to comment.