feat: import
This commit is contained in:
1
charts/offlineimap/templates/NOTES.txt
Normal file
1
charts/offlineimap/templates/NOTES.txt
Normal file
@@ -0,0 +1 @@
|
||||
{{- include "common.notes.defaultNotes" . -}}
|
||||
13
charts/offlineimap/templates/common.yaml
Normal file
13
charts/offlineimap/templates/common.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
{{/* Make sure all variables are set properly */}}
|
||||
{{- include "common.values.setup" . }}
|
||||
|
||||
{{/* custom render */}}
|
||||
|
||||
{{- include "common.pvc" . }}
|
||||
|
||||
{{- if .Values.secret -}}
|
||||
{{ include "common.secret" . | nindent 0 }}
|
||||
{{- end -}}
|
||||
|
||||
{{- include "common.cronjob" . }}
|
||||
|
||||
32
charts/offlineimap/templates/cronjob.yaml
Normal file
32
charts/offlineimap/templates/cronjob.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
{{- define "common.cronjob" }}
|
||||
---
|
||||
apiVersion: "batch/v1"
|
||||
kind: "CronJob"
|
||||
metadata:
|
||||
name: {{ include "common.names.fullname" . }}
|
||||
labels:
|
||||
{{- include "common.labels" . | nindent 4 }}
|
||||
{{- with .Values.controller.labels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- with .Values.controller.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
schedule: {{ .Values.cronjob.schedule }}
|
||||
concurrencyPolicy: {{ .Values.cronjob.concurrencyPolicy }}
|
||||
successfulJobsHistoryLimit: {{ .Values.cronjob.successfulJobsHistoryLimit }}
|
||||
failedJobsHistoryLimit: {{ .Values.cronjob.failedJobsHistoryLimit }}
|
||||
jobTemplate:
|
||||
spec:
|
||||
backoffLimit: 0
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
{{- include "common.controller.mainContainer" . | nindent 2 }}
|
||||
{{- with (include "common.controller.volumes" . | trim) }}
|
||||
volumes:
|
||||
{{- nindent 2 . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user