Remove code duplication of string to model.Protocol conversion#1866
Remove code duplication of string to model.Protocol conversion#1866rshriram merged 8 commits intoistio:masterfrom
Conversation
in conversion of a string to model.Protocol, since there are not-all-uppercase protocols like Mongo and Redis
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Assign the PR to them by writing The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these OWNERS Files:You can indicate your approval by writing |
Codecov Report
@@ Coverage Diff @@
## master #1866 +/- ##
==========================================
- Coverage 81.9% 81.84% -0.07%
==========================================
Files 188 189 +1
Lines 18715 18702 -13
==========================================
- Hits 15328 15306 -22
- Misses 2960 2968 +8
- Partials 427 428 +1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #1866 +/- ##
==========================================
- Coverage 81.9% 81.25% -0.65%
==========================================
Files 188 176 -12
Lines 18715 16553 -2162
==========================================
- Hits 15328 13450 -1878
+ Misses 2960 2745 -215
+ Partials 427 358 -69
Continue to review full report at Codecov.
|
|
@ijsnellf could you please add "lgtm" label? In the Labels section. |
…#1866) * added ConvertCaseInsensitiveStringToProtocol and ProtocolUnsupported * remove code duplication in convertProtocol functions * use ConvertCaseInsensitiveStringToProtocol instead of strings.ToUpper in conversion of a string to model.Protocol, since there are not-all-uppercase protocols like Mongo and Redis * removed unused metadata values * added TestConvertCaseInsensitiveStringToProtocol * replaced shadowing variable * Revert "replaced shadowing variable" This reverts commit 6a9981f. * replaced shadowing variable
* Reduce log level for jwt filter (istio#1866) * Update_Dependencies (istio#1873) * Correctly clean up headers used for payload from JWT authentication (istio#1879) * Correctly clean up headers used for payload from JWT authentication * Clang * Update_Dependencies (istio#1883) * destination.principal derivation fix (istio#1884) * fix attribute extraction Signed-off-by: Kuat Yessenov <kuat@google.com> * seed mock Signed-off-by: Kuat Yessenov <kuat@google.com> * merge 1.0 to master * Update API SHA (istio#1891) * add needed dependencies for circle ci
What this PR does / why we need it:
Removes code duplication of string to model.Protocol conversion
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close that issue when PR gets merged): fixes #Special notes for your reviewer:
This PR is needed for Mongo and Redis protocols support in Egress Rules
Release note: