Skip to content

Commit 1d27f0d

Browse files
committed
Fix-Helm-UTF8-env
1 parent 7857ff8 commit 1d27f0d

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

helm/defectdojo/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ dependencies:
3434
# description: Critical bug
3535
annotations:
3636
artifacthub.io/prerelease: "true"
37-
artifacthub.io/changes: "- kind: changed\n description: chore(deps)_ update valkey _ tag from 0.22.1 to v0.23.0 (_/defect_/chart.yaml)\n"
37+
artifacthub.io/changes: "- kind: changed\n description: chore(deps)_ update valkey _ tag from 0.22.1 to v0.23.0 (_/defect_/chart.yaml)\n- kind: fixed\n description: Set UTF-8 locale defaults for Helm chart containers\n"

helm/defectdojo/templates/configmap.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ data:
5656
DD_DJANGO_METRICS_ENABLED: '{{ .Values.monitoring.enabled }}'
5757
NGINX_METRICS_ENABLED: '{{ .Values.monitoring.enabled }}'
5858
METRICS_HTTP_AUTH_USER: {{ .Values.monitoring.user | default "monitoring" }}
59+
PYTHONUTF8: {{ ternary (index .Values.extraConfigs "PYTHONUTF8") "1" (hasKey .Values.extraConfigs "PYTHONUTF8") | quote }}
60+
LANG: {{ ternary (index .Values.extraConfigs "LANG") "C.UTF-8" (hasKey .Values.extraConfigs "LANG") | quote }}
61+
LC_ALL: {{ ternary (index .Values.extraConfigs "LC_ALL") "C.UTF-8" (hasKey .Values.extraConfigs "LC_ALL") | quote }}
5962
{{- if .Values.django.uwsgi.certificates.enabled }}
6063
REQUESTS_CA_BUNDLE: {{ .Values.django.uwsgi.certificates.certMountPath }}{{ .Values.django.uwsgi.certificates.certFileName }}
6164
{{- end }}
62-
{{- with .Values.extraConfigs }}
65+
{{- with omit .Values.extraConfigs "PYTHONUTF8" "LANG" "LC_ALL" }}
6366
{{- toYaml . | nindent 2 }}
6467
{{- end }}

0 commit comments

Comments
 (0)