Files
truecharts/charts/incubator/restreamer/templates/_secret.tpl
T
dc8bdab50b feat(restreamer): Add all the options! (#3786)
* fix(restreamer): move to stable.

* Rename README..md to README.md

* Update Chart.yaml

* add few things

* update images

* add logs

* add api

* add storage_disk

* fix few things and add storage_mem

* add rtmp

* update changelo

* remove

* tweaks

* ffmpeg

* add debug and playout

* add metrics

* add router and sessions

* fix secret and move to incubator

* add health probe

* quotes

* quotes

Co-authored-by: Stavros kois <s.kois@outlook.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
2022-09-16 22:41:51 +03:00

35 lines
1.1 KiB
Smarty

{{/* Define the secrets */}}
{{- define "restreamer.secrets" -}}
{{- $secretName := printf "%s-restreamer-secret" (include "tc.common.names.fullname" .) }}
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: {{ $secretName }}
data:
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
CORE_API_AUTH_JWT_SECRET: {{ index .data "CORE_API_AUTH_JWT_SECRET" }}
{{- else }}
CORE_API_AUTH_JWT_SECRET: {{ randAlphaNum 32 | b64enc }}
{{- end }}
{{- with .Values.restreamer.api.api_auth_username }}
CORE_API_AUTH_USERNAME: {{ . | b64enc }}
{{- end }}
{{- with .Values.restreamer.api.api_auth_password }}
CORE_API_AUTH_PASSWORD: {{ .| b64enc }}
{{- end }}
{{- with .Values.restreamer.storage_mem.storage_mem_auth_username }}
CORE_STORAGE_MEMORY_AUTH_USERNAME: {{ . | b64enc }}
{{- end }}
{{- with .Values.restreamer.storage_mem.storage_mem_auth_password }}
CORE_STORAGE_MEMORY_AUTH_PASSWORD: {{ . | b64enc }}
{{- end }}
{{- with .Values.restreamer.rtmp.rtmp_token }}
CORE_RTMP_TOKEN: {{ . | b64enc }}
{{- end }}
{{- end -}}