feat(apps): actually move to stable (#2319)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{{/* Define the secrets */}}
|
||||
{{- define "kutt.secrets" -}}
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
type: Opaque
|
||||
metadata:
|
||||
name: kutt-secrets
|
||||
{{- $kuttprevious := lookup "v1" "Secret" .Release.Namespace "kutt-secrets" }}
|
||||
{{- $jwt_secret := "" }}
|
||||
data:
|
||||
{{- if $kuttprevious}}
|
||||
JWT_SECRET: {{ index $kuttprevious.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 kutt */}}
|
||||
{{- include "kutt.secrets" . }}
|
||||
|
||||
{{/* Render the templates */}}
|
||||
{{ include "common.postSetup" . }}
|
||||
Reference in New Issue
Block a user