feat(traggo): move to stable

This commit is contained in:
Stavros Kois
2022-12-08 21:35:54 +02:00
committed by GitHub
parent d26c7ac7ea
commit b516d8fa1e
9 changed files with 1 additions and 1 deletions
@@ -0,0 +1,21 @@
{{/* Define the secret */}}
{{- define "traggo.secret" -}}
{{- $secretName := printf "%s-secret" (include "tc.common.names.fullname" .) }}
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: {{ $secretName }}
labels:
{{- include "tc.common.labels" . | nindent 4 }}
stringData:
TRAGGO_DATABASE_DIALECT: sqlite3
TRAGGO_DATABASE_CONNECTION: /opt/traggo/data/traggo.db
TRAGGO_PORT: {{ .Values.service.main.ports.main.port | quote }}
TRAGGO_PASS_STRENGTH: {{ .Values.traggo.pass_strength | quote }}
TRAGGO_DEFAULT_USER_NAME: {{ .Values.traggo.username }}
TRAGGO_DEFAULT_USER_PASS: {{ .Values.traggo.password }}
TRAGGO_LOG_LEVEL: {{ .Values.traggo.log_level }}
{{- end }}
@@ -0,0 +1,8 @@
{{/* Make sure all variables are set properly */}}
{{- include "tc.common.loader.init" . }}
{{/* Render secret */}}
{{- include "traggo.secret" . }}
{{/* Render the templates */}}
{{ include "tc.common.loader.apply" . }}