fix(incubator-apps): small fixes (#2274)
* feat(homer): move to stable * bump * feat(outline): move to stable * bump * bump * fix tz * add trusted host * bump
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
{{/* Define the secrets */}}
|
||||
{{- define "outline.secrets" -}}
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
type: Opaque
|
||||
metadata:
|
||||
name: outline-secrets
|
||||
{{- $outlineprevious := lookup "v1" "Secret" .Release.Namespace "outline-secrets" }}
|
||||
{{- $secret_key := "" }}
|
||||
{{- $utils_secret := "" }}
|
||||
data:
|
||||
{{- if $outlineprevious}}
|
||||
SECRET_KEY: {{ index $outlineprevious.data "SECRET_KEY" }}
|
||||
UTILS_SECRET: {{ index $outlineprevious.data "UTILS_SECRET" }}
|
||||
{{- else }}
|
||||
{{- $secret_key := randAlphaNum 32 }}
|
||||
{{- $utils_secret := randAlphaNum 32 }}
|
||||
SECRET_KEY: {{ $secret_key | b64enc }}
|
||||
UTILS_SECRET: {{ $utils_secret | b64enc }}
|
||||
{{- end }}
|
||||
|
||||
{{- end -}}
|
||||
@@ -0,0 +1,8 @@
|
||||
{{/* Make sure all variables are set properly */}}
|
||||
{{- include "common.setup" . }}
|
||||
|
||||
{{/* Render secrets for fireflyiii */}}
|
||||
{{- include "outline.secrets" . }}
|
||||
|
||||
{{/* Render the templates */}}
|
||||
{{ include "common.postSetup" . }}
|
||||
Reference in New Issue
Block a user