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>
This commit is contained in:
co-authored by
Stavros Kois
Stavros kois
parent
518b478375
commit
00851a31fb
@@ -0,0 +1,27 @@
|
||||
{{- 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 -}}
|
||||
@@ -0,0 +1,8 @@
|
||||
{{/* Make sure all variables are set properly */}}
|
||||
{{- include "tc.common.loader.init" . }}
|
||||
|
||||
{{/* Render config */}}
|
||||
{{- include "orbital.hosts" . }}
|
||||
|
||||
{{/* Render the templates */}}
|
||||
{{ include "tc.common.loader.apply" . }}
|
||||
Reference in New Issue
Block a user