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

Revert "Add a replacement mechanism to work around nil handling in ucfg (#4041)" #5044

Merged
merged 2 commits into from
Nov 15, 2021

Conversation

thbkrkr
Copy link
Contributor

@thbkrkr thbkrkr commented Nov 10, 2021

Since elastic/go-ucfg#188 fixes #3718, we no longer need the replacement mechanism to work around nil handling in ucfg (#4041).
Also updates the unit test TestCanonicalConfig_Render to cover that the configuration with an empty array works.

Resolves #3718.

Copy link
Collaborator

@pebrc pebrc left a comment

Choose a reason for hiding this comment

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

LGTM, I tested with the old ucfg version for comparison purposes and your unit test flags up the error correctly 👍

@thbkrkr thbkrkr merged commit 977a623 into elastic:master Nov 15, 2021
@thbkrkr thbkrkr added the v2.0.0 label Nov 15, 2021
@thbkrkr thbkrkr deleted the revert-4041 branch December 10, 2021 09:32
fantapsody pushed a commit to fantapsody/cloud-on-k8s that referenced this pull request Feb 7, 2023
…fg (elastic#4041)" (elastic#5044)

Since elastic/go-ucfg v0.8.4 now correctly renders empty arrays, we no longer need the nil replacement mechanism work around (elastic#4041).
Also updates the unit test TestCanonicalConfig_Render to cover that the configuration with an empty array works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Coordinator nodes cannot be defined using node.roles
2 participants