mouchar opened a new pull request, #348:
URL: https://github.com/apache/pulsar-helm-chart/pull/348

   Fixed the case when no ZK annotations are set and 
`zookeeper.restartPodsOnConfigMapChange: true` helm can not render template
   
   
   ### Motivation
   When you don't set any annotations to Zookeeper (they are empty by default) 
AND if you set
   ```yaml
   zookeeper.restartPodsOnConfigMapChange: true
   ```
   in your values.yaml file, the manifest can not be rendered. This commit 
fixes this condition and also unifies the
   the way how the custom annotations are added, with bookkeeper statefulset 
template.
   
   ```
   helm template pulsar apache/pulsar --version 3.0.0 --set 
zookeeper.restartPodsOnConfigMapChange=true  
   Error: YAML parse error on pulsar/templates/zookeeper-statefulset.yaml: 
error converting YAML to JSON: yaml: line 52: did not find expected key
   
   Use --debug flag to render out invalid YAML
   ```
   ### Modifications
   wrapping `toYaml` filter (that can return empty object `{}`) into `with` 
context.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   


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