adutra commented on code in PR #2104:
URL: https://github.com/apache/polaris/pull/2104#discussion_r2209816059


##########
helm/polaris/templates/_helpers.tpl:
##########
@@ -150,18 +150,18 @@ line breaks, they will be escaped and a multi-line option 
will be printed.
 {{- $valAsString = $valAsString | nindent 4 | replace "\n" "\\\n" -}}
 {{- end -}}
 {{- end -}}
-{{ print $key "=" $valAsString }}
+{{ print (include "polaris.escapeConfigOptionKey" $key) "=" $valAsString }}
 {{- end -}}
 
 {{/*
-Convert a dict into a string formed by a comma-separated list of key-value 
pairs: key1=value1,key2=value2, ...
+Escapes a property key to be used in a configmap, conforming with the Java 
parsisng rules for
+property files: 
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Properties.html#load(java.io.Reader)
+- Escapes all backslashes.
+- Escapes all key termination charaters: '=', ':' and whitespace.
 */}}
-{{- define "polaris.dictToString" -}}

Review Comment:
   The template `polaris.dictToString` was unused.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to