13 lines
487 B
YAML
13 lines
487 B
YAML
{{ tpl (.Files.Get "factorio.yaml") . }}
|
|
---
|
|
{{ tpl (.Files.Get "monitoring.yaml") . }}
|
|
---
|
|
{{- if .Values.dashboard.enabled }}
|
|
{{- $dashboard := .Files.Get "dashboard.yaml" }}
|
|
{{- $dashboard = replace "namespace=\\\"factorio\\\"" (printf "namespace=\\\"%s\\\"" .Release.Namespace) $dashboard }}
|
|
{{- range list "version" "container" "node" }}
|
|
{{- $dashboard = replace (printf "{{%s}}" .) (printf "{{ \"{{\" }}%s{{ \"}}\" }}" .) $dashboard }}
|
|
{{- end }}
|
|
{{ tpl $dashboard . }}
|
|
{{- end }}
|