Skip to content
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

Fix check if server.ha.replicas is a number when set in values.yaml #961

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

wtfloris
Copy link
Contributor

@wtfloris wtfloris commented Oct 3, 2023

The commits merged in #943 only work when using --set 'server.ha.replicas=2' from the CLI, not when server.ha.replicas is defined in values.yaml. This behaviour is expected and described in helm/helm#12084. You can see this in action on this playground.

This passes the unit tests because they don't use values.yaml, so only the CLI behaviour is tested and this passed without raising issues.

By checking if the value is either int64 or float64, both cases work. There are no other cases where a value is checked if it's int64, so this should not occur anywhere else in this chart.

@wtfloris wtfloris requested a review from a team as a code owner October 3, 2023 14:38
Copy link
Contributor

@kschoche kschoche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for this fix!

@cschlesselmann
Copy link

I've just stumbled across this issue, when is it expected to be merged and released in the chart?

@xdoncalvox
Copy link

I am also facing this issue, my vault helm chart defaulted to 3 causing some undesire behaviours in my cluster, I hope this get merge and released asap.

@kschoche kschoche merged commit 9b3ceaa into hashicorp:main Oct 30, 2023
10 checks passed
@nomaster
Copy link

Just found your PR to be merged, after digging into this issue for over 1 hour. Thanks a million!

@kschoche
Copy link
Contributor

Sorry about this, I had approved the PR but forgotten to merge, I'll try to get a release out ASAP with this fix.

@kschoche
Copy link
Contributor

Hi - 0.26.1 was released this afternoon, sorry for letting this bug slip through, and thanks for hanging in there.

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.

None yet

5 participants