AtkinsChang opened a new pull request, #353:
URL: https://github.com/apache/pulsar-helm-chart/pull/353
### Motivation
When `restartPodsOnConfigMapChange` is true, pod template such as:
```yaml
annotations:
{{- if .Values.zookeeper.restartPodsOnConfigMapChange }}
checksum/config: {{ include (print $.Template.BasePath
"/zookeeper-configmap.yaml") . | sha256sum }}
{{- end }}
{{ toYaml .Values.zookeeper.annotations | indent 8 }}
```
will be generated to:
```yaml
annotations:
checksum/config: <sha256>
{}
```
which is not a valid yaml
### Modifications
Geneate `.Values.<component>.annotations` only if is has values.
### 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]