feat(kimai): move to stable (#2304)
* feat(kimai): move to stable * bump
This commit is contained in:
@@ -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" . }}
|
||||
Reference in New Issue
Block a user