Description
We can have issues with JVM properties not being properly escaped, so it would be interesting to update https://github.com/xwiki-contrib/xwiki-helm/blob/052a047b946a9586845bd6a000f4dd0334c15859/charts/xwiki/templates/initialization-configmaps.yaml#L82C11-L82C11 so that the property value we are defining is escaped by default with double quotes, something along these lines :
{{- range $file, $value := .Values.properties }}
echo "-D{{ $file }}=\"{{ $value }}\"" >> /tmp/java_opts.txt
{{- end }}
Note that we will also need to escape any " that is present within $value.
As the echo itself is also using some double quotes before the line to be added to java_opts, it may cause some issues too.