feat(soft-serve) move to stable (#6591)

This commit is contained in:
Xstar97
2023-01-21 13:46:30 +02:00
committed by GitHub
parent 93011fd834
commit cda072588c
9 changed files with 4 additions and 4 deletions
@@ -0,0 +1,21 @@
{{/* Define the secret */}}
{{- define "softserve.secret" -}}
{{- $secretName := printf "%s-env-secret" (include "tc.common.names.fullname" .) }}
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: {{ $secretName }}
labels:
{{- include "tc.common.labels" . | nindent 4 }}
stringData:
SOFT_SERVE_BIND_ADDRESS: "0.0.0.0"
SOFT_SERVE_REPO_PATH: {{ .Values.persistence.repos.mountPath | quote }}
SOFT_SERVE_PORT: {{ .Values.service.main.ports.main.port | quote }}
SOFT_SERVE_HOST: {{ .Values.softserve.host | quote }}
SOFT_SERVE_KEY_PATH: {{ .Values.softserve.key_path | quote }}
SOFT_SERVE_INITIAL_ADMIN_KEY: {{ .Values.softserve.init_admin_key | quote }}
{{- end }}
@@ -0,0 +1,8 @@
{{/* Make sure all variables are set properly */}}
{{- include "tc.common.loader.init" . }}
{{/* Render secret */}}
{{- include "softserve.secret" . }}
{{/* Render the templates */}}
{{ include "tc.common.loader.apply" . }}