Skip to content

Conversation

dalbani
Copy link
Contributor

@dalbani dalbani commented Aug 31, 2021

As reported by @StepanKuksenko in #1224 (comment), some properties are missing in the ConfigMap generated by the Helm chart.
This is due to the strict check on if or (kindIs "string" $value) (kindIs "int" $value), whereas the list of variable types encountered by the function is string, map, slice, bool and float64 (see that the last 2 are missing in flattenValuesForConfigMap.
My proposal is to actually use a else fallback, instead of explicitly looking for certain types.
(The alternative would be to expand/modify the list of type if the first if to include bool and float64.

Question: how can we prevent this kind of problem from happening again the future? Is there an integration that could be expanded?

@dalbani
Copy link
Contributor Author

dalbani commented Aug 31, 2021

Comparison between before and after the change when running:

charts/postgres-operator$ helm template --set configTarget=ConfigMap postgres-operator | less

image

@FxKu
Copy link
Member

FxKu commented Sep 13, 2021

👍

@FxKu FxKu added this to the 1.7 milestone Sep 13, 2021
@Jan-M
Copy link
Member

Jan-M commented Sep 13, 2021

👍

@FxKu FxKu merged commit 9e291d0 into zalando:master Sep 13, 2021
@dalbani dalbani deleted the incomplete_configmap branch September 14, 2021 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants