forked from istio/istio
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
istioctl: avoid parsing strings to ints for string fields
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
- Loading branch information
Showing
4 changed files
with
127 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: release-notes/v2 | ||
kind: bug-fix | ||
area: istioctl | ||
issue: | ||
- 50990 | ||
releaseNotes: | ||
- | | ||
**Fixed** a bug in istioctl where it would parse a field value into a non-string type which then failed to be assigned to the string field. |