-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Key duplication in configMaps causing errors on some deployment tools #103
Comments
@nuriel77 - thank you for this detailed issue. It should definitely be cleaned up. I should be able to fix this and deploy an updated chart early next week. |
@michaeljmarshall Hi! Thanks. Do I understand correctly that these might be the types of values the workaround was trying to fix: https://github.com/datastax/pulsar-helm-chart/pull/107/files#diff-3be28e7b230396d61d2bc7bd74e5e00070fbfa2c507caa36269a18bfe502df52L37 If that is the case, did you consider trying the following approach that might just work for all cases:
Tested with the following values:
Result:
|
@nuriel77 - yes, those are exactly the the values the fix was working around. This looks like a good solution to prevent breaking changes. Are you interested in creating a PR with this fix? If not, I should be able to contribute this fix tomorrow. |
Sure. I will be able to do it tomorrow morning (around European timezone) 👍 |
In these two files I found that there is a key duplication in the configMap:
https://github.com/datastax/pulsar-helm-chart/blob/master/helm-chart-sources/pulsar/templates/broker-deployment/broker-configmap.yaml#L222
https://github.com/datastax/pulsar-helm-chart/blob/master/helm-chart-sources/pulsar/templates/zookeeper/zookeeper-configmap.yaml#L40
For example, if I run
helm template .
and view zookeeper's configMap output:The last 2 (PULSAR_MEM and PULSAR_GC) appear twice. This isn't a problem for Helm to handle.
However, for deployment automation tools such as kustomize and FluxCD this presents a problem as they depend on
kyaml
.This is a known issue: kubernetes-sigs/kustomize#3480
There's even the chance the error will eventually end up in Helm's newer versions.
I haven't noticed this duplication/workaround on apache's pulsar chart.
Would it be possible to remove the duplication or handle it in a way that will not produce double keys in the configMap?
There might be other instances of the duplication in other configMaps, I haven't gone through all of them.
Thank you.
The text was updated successfully, but these errors were encountered: