Skip to content

[release-1.31] Use UInt32Value for min_cluster_size to fix client-go JSON apply - #3756

Merged
istio-testing merged 1 commit into
istio:release-1.31from
sschepens:cherrypick-3755
Aug 14, 2026
Merged

[release-1.31] Use UInt32Value for min_cluster_size to fix client-go JSON apply#3756
istio-testing merged 1 commit into
istio:release-1.31from
sschepens:cherrypick-3755

Conversation

@sschepens

@sschepens sschepens commented Aug 13, 2026

Copy link
Copy Markdown
Member

manual cherry-pick of #3754 into 1.31

Fixes #3755

…io#3754)

UInt64Value serializes as a JSON string (proto3 JSON spec) but the
DestinationRule CRD schema declares minClusterSize as type: integer,
so DRs containing it are rejected by the API server when applied via
client-go, while kubectl apply works because it bypasses protobuf
marshaling. UInt32Value serializes as a JSON number, matching the
schema. A host count with a default of 6 does not require uint64 range.
@sschepens
sschepens requested a review from a team as a code owner August 13, 2026 17:46
@istio-testing istio-testing added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 13, 2026
@jewertow jewertow added the do-not-merge Block automatic merging of a PR. label Aug 13, 2026
@sschepens sschepens added the release-notes-none Indicates a PR that does not require release notes. label Aug 13, 2026
@sschepens

Copy link
Copy Markdown
Member Author

/retest

@sschepens

Copy link
Copy Markdown
Member Author

@jewertow we would need to get this into 1.31 before release, since it's an api change

@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.

@jewertow jewertow changed the title cherry-pick #3754 into 1.31 [release-1.31] Use UInt32Value for min_cluster_size to fix client-go JSON apply Aug 14, 2026
@jewertow jewertow removed the do-not-merge Block automatic merging of a PR. label Aug 14, 2026
@istio-testing
istio-testing merged commit 6d586ec into istio:release-1.31 Aug 14, 2026
5 checks passed
@sschepens
sschepens deleted the cherrypick-3755 branch August 14, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes-none Indicates a PR that does not require release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants