From 790d0405c284bee60571ad7fd15199f39f2753fb Mon Sep 17 00:00:00 2001 From: JosefWN Date: Wed, 17 Feb 2021 17:44:40 +0800 Subject: [PATCH] Fix typo enabling pprof (#114) Nothing critical, but had a typo in the naming of the config entry to enable `pprof`. Co-authored-by: josef Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/114 Reviewed-by: luhahn Reviewed-by: Lunny Xiao Co-authored-by: JosefWN Co-committed-by: JosefWN --- .gitignore | 1 + README.md | 2 +- templates/gitea/config.yaml | 4 ++-- templates/gitea/statefulset.yaml | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 8d89461..18c1386 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ charts Chart.lock +.DS_Store diff --git a/README.md b/README.md index c37cd65..8ead328 100644 --- a/README.md +++ b/README.md @@ -304,7 +304,7 @@ gitea: config: server: - PPROF_ENABLED: true + ENABLE_PPROF: true ``` ### Pod Annotations diff --git a/templates/gitea/config.yaml b/templates/gitea/config.yaml index 49d5553..83c3154 100644 --- a/templates/gitea/config.yaml +++ b/templates/gitea/config.yaml @@ -69,8 +69,8 @@ stringData: {{- if not (hasKey .Values.gitea.config.server "APP_DATA_PATH") -}} {{- $_ := set .Values.gitea.config.server "APP_DATA_PATH" "/data" -}} {{- end -}} - {{- if not (hasKey .Values.gitea.config.server "PPROF_ENABLED") -}} - {{- $_ := set .Values.gitea.config.server "PPROF_ENABLED" false -}} + {{- if not (hasKey .Values.gitea.config.server "ENABLE_PPROF") -}} + {{- $_ := set .Values.gitea.config.server "ENABLE_PPROF" false -}} {{- end -}} {{- /* metrics default settings */ -}} diff --git a/templates/gitea/statefulset.yaml b/templates/gitea/statefulset.yaml index 245b716..410eed8 100644 --- a/templates/gitea/statefulset.yaml +++ b/templates/gitea/statefulset.yaml @@ -66,7 +66,7 @@ spec: containerPort: {{ .Values.gitea.config.server.SSH_LISTEN_PORT }} - name: http containerPort: {{ .Values.gitea.config.server.HTTP_PORT }} - {{- if .Values.gitea.config.server.PPROF_ENABLED }} + {{- if .Values.gitea.config.server.ENABLE_PPROF }} - name: profiler containerPort: 6060 {{- end }}