Fix NOTES rendering All checks were successful check-and-test / check-and-test (pull_request) Successful in 48s
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 48s
The warnings were printed in one single line. Signed-off-by: justusbunsi <sk.bunsenbrenner@gmail.com>
This commit is contained in:
@@ -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 }} | ||||
| ||||
Reference in New Issue
Block a user