chart: make secret external
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
andreas 2022-09-15 21:56:49 +02:00
parent 49026a2d17
commit 2131fd59b0
Signed by: andreas
GPG Key ID: D97194E55873280A
3 changed files with 2 additions and 10 deletions

View File

@ -19,7 +19,7 @@ spec:
name: leetbot name: leetbot
envFrom: envFrom:
- secretRef: - secretRef:
name: {{ .Release.Name }}-token name: {{ .Values.app.secret_name }}
- configMapRef: - configMapRef:
name: {{ .Release.Name }}-cm name: {{ .Release.Name }}-cm
{{- if .Values.storage.enabled }} {{- if .Values.storage.enabled }}

View File

@ -1,7 +0,0 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-token
data:
TELEGRAM_BOT_TOKEN: {{ .Values.app.token | b64enc }}
DB_URL: {{ .Values.app.db | b64enc }}

View File

@ -2,8 +2,7 @@ image:
repository: registry.local/northcode/leetbot repository: registry.local/northcode/leetbot
app: app:
token: blabla secret_name: leetbot-token
db: sqlite:leet.db
tz: Europe/Oslo tz: Europe/Oslo
storage: storage: