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

Properly handle JSON server config #1049

Merged

Conversation

benashz
Copy link
Contributor

@benashz benashz commented Aug 6, 2024

The changes made to generate the server configuration in d186b6f broke the user's ability to provide extra server configuration as JSON. This PR adds checks to ensure that the extra server configuration can be specified as JSON.

The same change mentioned above introduced support for setting the extra server configuration from a YAML structure, unfortunately Helm is not able to properly render the value given the defaults found in values.yaml. This PR enforces that config value must be a string.

@benashz benashz requested a review from a team as a code owner August 6, 2024 15:47
Copy link
Member

@tvoran tvoran left a comment

Choose a reason for hiding this comment

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

👍

values.yaml Show resolved Hide resolved
templates/_helpers.tpl Outdated Show resolved Hide resolved
templates/_helpers.tpl Outdated Show resolved Hide resolved
test/unit/server-configmap.bats Outdated Show resolved Hide resolved
test/unit/server-configmap.bats Outdated Show resolved Hide resolved
test/unit/server-configmap.bats Show resolved Hide resolved
test/unit/server-configmap.bats Show resolved Hide resolved
test/unit/server-configmap.bats Outdated Show resolved Hide resolved
@benashz benashz merged commit 191e422 into main Aug 7, 2024
8 checks passed
@benashz benashz deleted the VAULT-25346/fix-properly-handle-json-encoded-server-config branch August 7, 2024 20:02
@benashz
Copy link
Contributor Author

benashz commented Aug 7, 2024

Thanks!

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.

2 participants