feat(apps): move apps to stable (#2188)

* feat(apps): move apps to stable

* update image ref
This commit is contained in:
Stavros Kois
2022-03-16 21:37:59 +02:00
committed by GitHub
parent d103378a58
commit 0cbd315c55
66 changed files with 19 additions and 15 deletions
@@ -0,0 +1,20 @@
{{/* Define the secrets */}}
{{- define "hammond.secrets" -}}
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: hammond-secrets
{{- $hammondprevious := lookup "v1" "Secret" .Release.Namespace "hammond-secrets" }}
{{- $jwt_secret := "" }}
data:
{{- if $hammondprevious}}
JWT_SECRET: {{ index $hammondprevious.data "JWT_SECRET" }}
{{- else }}
{{- $jwt_secret := randAlphaNum 32 }}
JWT_SECRET: {{ $jwt_secret | b64enc }}
{{- end }}
{{- end -}}
@@ -0,0 +1,8 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.setup" . }}
{{/* Render secrets for hammond */}}
{{- include "hammond.secrets" . }}
{{/* Render the templates */}}
{{ include "common.postSetup" . }}