Skip to content

fix: add UNSPECIFIED zero values to ConnectionSettings enums#3725

Merged
istio-testing merged 1 commit into
istio:masterfrom
cam-garrison:fix-enums-edge
Jun 12, 2026
Merged

fix: add UNSPECIFIED zero values to ConnectionSettings enums#3725
istio-testing merged 1 commit into
istio:masterfrom
cam-garrison:fix-enums-edge

Conversation

@cam-garrison

Copy link
Copy Markdown
Contributor

Found a bug in recent PR I made #3707 while writing wiring code in istio/istio. HttpHeadersWithUnderscoresAction and HttpPathWithEscapedSlashesAction use bare enums whose zero values (ALLOW, KEEP_UNCHANGED) are indistinguishable from "unset".

This adds Add HEADERS_WITH_UNDERSCORES_UNSPECIFIED = 0 and PATH_WITH_ESCAPED_SLASHES_UNSPECIFIED = 0 to the two ConnectionSettings enums introduced in above PR.

Wire-breaking change to enum numbering, should be safe since ConnectionSettings has not shipped in any release.

Signed-off-by: Cameron Garrison <cgarriso@redhat.com>
@cam-garrison cam-garrison requested a review from a team as a code owner June 11, 2026 19:25
@istio-policy-bot

Copy link
Copy Markdown

🤔 🐛 You appear to be fixing a bug in Go code, yet your PR doesn't include updates to any test files. Did you forget to add a test?

Courtesy of your friendly test nag.

@istio-testing istio-testing added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 11, 2026
@istio-testing

Copy link
Copy Markdown
Collaborator

@cam-garrison: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
release-notes_api f3e00cb link false /test release-notes
Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@zirain

zirain commented Jun 12, 2026

Copy link
Copy Markdown
Member

is this released or not? if so, this seems to be a breaking change.

@keithmattix

Copy link
Copy Markdown
Contributor

Not released yet; just merged last week. LGTM

@istio-testing istio-testing merged commit fd30c19 into istio:master Jun 12, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants