-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path_helpers.tpl
More file actions
34 lines (30 loc) · 937 Bytes
/
_helpers.tpl
File metadata and controls
34 lines (30 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{{- define "matrix.rss.as_token" -}}
{{- randAlphaNum 64 -}}
{{- end -}}
{{- define "matrix.rss.hs_token" -}}
{{- randAlphaNum 64 -}}
{{- end -}}
{{/* registration secret name */}}
{{- define "matrix.rss.registrationSecret" -}}
{{- if .Values.bridges.rss.existingSecret.registration -}}
{{ .Values.bridges.rss.existingSecret.registration }}
{{- else -}}
{{ template "matrix.fullname" . }}-rss-registration
{{- end -}}
{{- end -}}
{{/* config secret name */}}
{{- define "matrix.rss.configSecret" -}}
{{- if .Values.bridges.rss.existingSecret.config -}}
{{ .Values.bridges.rss.existingSecret.config }}
{{- else -}}
{{ template "matrix.fullname" . }}-rss-config
{{- end -}}
{{- end -}}
{{/* feeds secret name */}}
{{- define "matrix.rss.feedsSecret" -}}
{{- if .Values.bridges.rss.existingSecret.feeds -}}
{{ .Values.bridges.rss.existingSecret.feeds }}
{{- else -}}
{{ template "matrix.fullname" . }}-rss-feeds
{{- end -}}
{{- end -}}