Files
truecharts/charts/incubator/orbital-sync/templates/_pihole-hosts.tpl
T
00851a31fb feat(Orbital-Sync): Add Orbital Sync chart (#3702)
* feat(Orbital-Sync): Add Orbital-Sync

* commit

* fix values lint

* More typos

* typos!

* Create README.md

* some fixs

* add options

* add unlimited secondary hosts

* add some defult values

* quote

* indentation... every time

* shut up you lilttle princess

* skip CI for this app..

Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Co-authored-by: Stavros kois <s.kois@outlook.com>
2022-09-05 11:45:53 +03:00

28 lines
750 B
Smarty

{{- define "orbital.hosts" -}}
{{- $secretName := printf "%s-config" (include "tc.common.names.fullname" .) }}
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: {{ $secretName }}
labels:
{{- include "tc.common.labels" . | nindent 4 }}
data:
PRIMARY_HOST_BASE_URL: {{ .Values.orbital.primary_host_base_url | b64enc }}
PRIMARY_HOST_PASSWORD: {{ .Values.orbital.primary_host_password | b64enc }}
{{- with .Values.orbital.honeybadger_api_key }}
HONEYBADGER_API_KEY: {{ . | b64enc }}
{{- end }}
{{ $idx := 1 }}
{{- range .Values.orbital.secondary_hosts }}
SECONDARY_HOST_{{$idx}}_BASE_URL: {{ .host | b64enc }}
SECONDARY_HOST_{{$idx}}_PASSWORD: {{ .password | b64enc }}
{{ $idx = add1 $idx }}
{{- end }}
{{- end -}}