mirror of
https://github.com/truenas/charts.git
synced 2026-05-04 06:12:09 +08:00
* add `firefly-iii` to `community` train * initial templates * fix path * llint * remove app_env * more work * add service * typo * redis service * restart never cron * add cap * more cap * more caps * fix port * fix few things * more fixes * fix cron * another var * typo * update meta * add importer port gui * add missing keys from values * conditionally render the importer config * fix config
68 lines
1.8 KiB
Smarty
68 lines
1.8 KiB
Smarty
{{- define "firefly.importer" -}}
|
|
{{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) }}
|
|
workload:
|
|
firefly-importer:
|
|
enabled: true
|
|
type: Deployment
|
|
podSpec:
|
|
containers:
|
|
firefly-importer:
|
|
enabled: true
|
|
primary: true
|
|
imageSelector: importerImage
|
|
securityContext:
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
runAsNonRoot: false
|
|
readOnlyRootFilesystem: false
|
|
capabilities:
|
|
add:
|
|
- CHOWN
|
|
- FOWNER
|
|
- SETUID
|
|
- SETGID
|
|
envFrom:
|
|
- secretRef:
|
|
name: importer-config
|
|
{{ with .Values.fireflyConfig.additionalImporterEnvs }}
|
|
envList:
|
|
{{ range $env := . }}
|
|
- name: {{ $env.name }}
|
|
value: {{ $env.value }}
|
|
{{ end }}
|
|
{{ end }}
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: http
|
|
path: /health
|
|
port: 8080
|
|
readiness:
|
|
enabled: true
|
|
type: http
|
|
path: /health
|
|
port: 8080
|
|
startup:
|
|
enabled: true
|
|
type: http
|
|
path: /health
|
|
port: 8080
|
|
initContainers:
|
|
firefly-wait:
|
|
enabled: true
|
|
type: init
|
|
imageSelector: bashImage
|
|
command:
|
|
- bash
|
|
args:
|
|
- -c
|
|
- |
|
|
until wget --spider --quiet --timeout=3 --tries=1 \
|
|
http://{{ $fullname }}:{{ .Values.fireflyNetwork.webPort }}/health;
|
|
do
|
|
echo "Waiting for Firefly III to be ready..."
|
|
sleep 2
|
|
done
|
|
|
|
{{- end -}}
|