feat: add secret

This commit is contained in:
Julien Cabillot 2022-04-18 14:01:48 -04:00
parent 7035865bb6
commit 3718eedd31
5 changed files with 9 additions and 4 deletions

View File

@ -1,2 +1,4 @@
# offlineimap-helm # offlineimap-helm
Pas super propre, pleins de trucs harcodé, usage à moitié de la common lib (pas de volonté upstream de gérer les cronjobs)

View File

@ -3,7 +3,7 @@ apiVersion: v2
description: Helm chart for offlineimap description: Helm chart for offlineimap
name: offlineimap name: offlineimap
type: application type: application
version: 0.0.17 version: 0.0.19
kubeVersion: ">=1.16.0-0" kubeVersion: ">=1.16.0-0"
keywords: keywords:
- offlineimap - offlineimap

View File

@ -3,6 +3,4 @@
{{/* custom render */}} {{/* custom render */}}
{{- if .Values.secret -}} {{ include "common.secret" . | nindent 0 }}
{{ include "common.secret" . | nindent 0 }}
{{- end -}}

View File

@ -54,6 +54,9 @@ spec:
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}
envFrom:
- secretRef:
name: {{ include "common.names.fullname" . }}
volumeMounts: volumeMounts:
- name: dump - name: dump
mountPath: /dump mountPath: /dump

View File

@ -12,6 +12,8 @@ image:
env: env:
TZ: America/New_York TZ: America/New_York
secret:
IMAP_USER: TODO IMAP_USER: TODO
IMAP_PASS: TODO IMAP_PASS: TODO
IMAP_SRV: TODO IMAP_SRV: TODO