feat(kimai): move to stable (#2304)

* feat(kimai): move to stable

* bump
This commit is contained in:
Stavros Kois
2022-03-27 16:02:11 +03:00
committed by GitHub
parent 5b5f748789
commit 811ad4609a
10 changed files with 1 additions and 1 deletions
@@ -0,0 +1,20 @@
{{/* Define the secrets */}}
{{- define "kimai.secrets" -}}
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: kimai-secrets
{{- $kimaiprevious := lookup "v1" "Secret" .Release.Namespace "kimai-secrets" }}
{{- $app_secret := "" }}
data:
{{- if $kimaiprevious}}
APP_SECRET: {{ index $kimaiprevious.data "APP_SECRET" }}
{{- else }}
{{- $app_secret := randAlphaNum 32 }}
APP_SECRET: {{ $app_secret | b64enc }}
{{- end }}
{{- end -}}
@@ -0,0 +1,8 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.setup" . }}
{{/* Render secrets for kimai */}}
{{- include "kimai.secrets" . }}
{{/* Render the templates */}}
{{ include "common.postSetup" . }}