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(values) use empty array default for stream #594

Merged
merged 1 commit into from
May 11, 2022
Merged

Conversation

rainest
Copy link
Contributor

@rainest rainest commented May 11, 2022

What this PR does / why we need it:

Use the correct type of collection for the stream defaults.

Doing so clears this warning:

coalesce.go:220: warning: cannot overwrite table with non table for kong.proxy.stream (map[])
coalesce.go:220: warning: cannot overwrite table with non table for kong.proxy.stream (map[])

Special notes for your reviewer:

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • PR is based off the current tip of the main branch.
  • Changes are documented under the "Unreleased" header in CHANGELOG.md
  • New or modified sections of values.yaml are documented in the README.md
  • Commits follow the Kong commit message guidelines

@rainest rainest requested a review from a team as a code owner May 11, 2022 16:45
Change the proxy.stream and udpProxy.stream defaults from an empty
mapping ("{}") to an empty block sequence ("[]"). Actual stream
configuration uses an array of maps, not a map of maps. Helm was able to
ignore this mismatch and render normally, but did print a warning.
Changing this removes the warning.
@rainest rainest merged commit 64fb4be into main May 11, 2022
@rainest rainest deleted the fix/streamarr branch May 11, 2022 17:06
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

2 participants