sijie commented on a change in pull request #6565: [Issue 5992][Helm chart] 
Helm chart bug fixes
URL: https://github.com/apache/pulsar/pull/6565#discussion_r403744582
 
 

 ##########
 File path: 
deployment/kubernetes/helm/pulsar/templates/bookkeeper-configmap.yaml
 ##########
 @@ -32,7 +32,7 @@ metadata:
 data:
   zkServers:
     {{- $global := . }}
-    {{ range $i, $e := until (.Values.zookeeper.replicaCount | int) }}{{ if ne 
$i 0 }},{{ end }}{{ template "pulsar.fullname" $global }}-{{ 
$global.Values.zookeeper.component }}-{{ printf "%d" $i }}.{{ template 
"pulsar.fullname" $global }}-{{ $global.Values.zookeeper.component }}{{ end }}
+    {{ range $i, $e := until (.Values.zookeeper.replicaCount | int) }}{{ if ne 
$i 0 }},{{ end }}{{ template "pulsar.fullname" $global }}-{{ 
$global.Values.zookeeper.component }}-{{ printf "%d" $i }},{{ template 
"pulsar.fullname" $global }}-{{ $global.Values.zookeeper.component }}{{ end }}
 
 Review comment:
   I don't think this change is correct.
   
   Before this change, it generates `zkServers` as the following settings:
   ```
   
pulsar-dev-zookeeper-0.pulsar-dev-zookeeper,pulsar-dev-zookeeper-1.pulsar-dev-zookeeper,pulsar-dev-zookeeper-2.pulsar-dev-zookeeper
   ```
   
   But after your change, it generates a wrong list:
   
   ```
   
pulsar-dev-zookeeper-0,pulsar-dev-zookeeper,pulsar-dev-zookeeper-1,pulsar-dev-zookeeper,pulsar-dev-zookeeper-2,pulsar-dev-zookeeper
   ```
   
   Although the wrong list can be used without problems, it doesn't seem to the 
right fix.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to