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

istioctl: avoid parsing strings to ints or floats for string fields #51031

Closed
wants to merge 1 commit into from

Conversation

dgn
Copy link
Contributor

@dgn dgn commented May 14, 2024

Please provide a description of this PR:

This uses reflection to check field types of our values. The performance hit should be negligible as this only runs as part of istioctl. The function turned out to be a bit more complex because we a) use a map for values instead of the struct in our IstioOperator CRD and b) protoc-gen-go does not generate proper json tags.

Fixes #50990

This uses reflection to check field types of our values. The performance
hit should be negligible as this only runs as part of istioctl. The
function turned out to be a bit more complex because we a) use a map
for values instead of the struct in our IstioOperator CRD and b)
protoc-gen-go does not generate proper json tags.

Fixes istio#50990
@dgn dgn requested a review from a team as a code owner May 14, 2024 11:23
@istio-testing istio-testing added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 14, 2024
@istio-testing
Copy link
Collaborator

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

Test name Commit Details Required Rerun command
lint_istio d88e340 link true /test lint
gencheck_istio d88e340 link true /test gencheck
integ-ds_istio d88e340 link true /test integ-ds
integ-telemetry-istiodremote_istio d88e340 link true /test integ-telemetry-istiodremote
integ-telemetry-mc_istio d88e340 link true /test integ-telemetry-mc
integ-pilot-istiodremote_istio d88e340 link true /test integ-pilot-istiodremote
integ-pilot-multicluster_istio d88e340 link true /test integ-pilot-multicluster
integ-pilot-istiodremote-mc_istio d88e340 link true /test integ-pilot-istiodremote-mc
integ-security-multicluster_istio d88e340 link true /test integ-security-multicluster
integ-security-istiodremote_istio d88e340 link true /test integ-security-istiodremote
integ-telemetry_istio d88e340 link true /test integ-telemetry
integ-telemetry-discovery_istio d88e340 link true /test integ-telemetry-discovery

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.

@dgn
Copy link
Contributor Author

dgn commented May 14, 2024

Closing for now, I'll rework this a bit

@dgn dgn closed this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/environments area/user experience size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

istioctl doesn't correctly patch CPU requests/limits
3 participants