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 }}