Fix NOTES rendering

The warnings were printed in one single line.

Signed-off-by: justusbunsi <sk.bunsenbrenner@gmail.com>
This commit is contained in:
justusbunsi 2023-12-15 21:19:51 +01:00
parent bf35498673
commit 575186e537
No known key found for this signature in database
GPG key ID: 26C8313BA763E7E5

View file

@ -18,12 +18,19 @@
echo "Visit http://127.0.0.1:{{ .Values.service.http.port }} to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward svc/{{ .Release.Name }}-http {{ .Values.service.http.port }}:{{ .Values.service.http.port }}
{{- end }}
{{- $warnings := list -}}
{{- if eq (get .Values.gitea.config.cache "ADAPTER") "memory" -}}
echo "Warning: Gitea is using the 'memory' setting for caching which is not recommended for production use cases. See https://docs.gitea.com/next/administration/config-cheat-sheet#cache-cache for available options."
{{- $warnings = append $warnings "Gitea uses 'memory' for caching which is not recommended for production use. See https://docs.gitea.com/next/administration/config-cheat-sheet#cache-cache for available options." -}}
{{- end }}
{{- if eq (get .Values.gitea.config.queue "TYPE") "level" -}}
echo "Warning: Gitea is using the 'level' setting for queue actions which is not recommended for production use cases. See https://docs.gitea.com/next/administration/config-cheat-sheet#queue-queue-and-queue for available options."
{{- $warnings = append $warnings "Gitea uses 'leveldb' for queue actions which is not recommended for production use. See https://docs.gitea.com/next/administration/config-cheat-sheet#queue-queue-and-queue for available options." -}}
{{- end }}
{{- if eq (get .Values.gitea.config.session "PROVIDER") "memory" -}}
echo "Warning: Gitea is using the 'memory' setting for session actions which is not recommended for production use cases. See https://docs.gitea.com/next/administration/config-cheat-sheet#session-session for available options."
{{- end }}
{{- $warnings = append $warnings "Gitea uses 'memory' for sessions which is not recommended for production use. See https://docs.gitea.com/next/administration/config-cheat-sheet#session-session for available options." -}}
{{- end }}
{{- if gt (len $warnings) 0 }}
2. Review these warnings:
{{- range $warnings }}
- {{ . }}
{{- end }}
{{- end }}