Skip to content

Conversation

@youngnick
Copy link
Member

@youngnick youngnick commented Nov 11, 2021

Cherry-pick PR #4117 to release-1.18, in preparation for a 1.18.3 release.

Updates #4168

Original commit message below.


Since the current field for NumRetries is not a pointer, Contour
doesn't have a good way to understand if the field is unspecified,
or set to zero.

To keep the v1 API contract, Contour will allow this field to be set
to -1 which means the numRetries should be zero. If unspecified or set
to zero, then the Envoy default of 1 is used.

Signed-off-by: Steve Sloka [email protected]

…4117)

Since the current field for NumRetries is not a pointer, Contour
doesn't have a good way to understand if the field is unspecified,
or set to zero.

To keep the v1 API contract, Contour will allow this field to be set
to -1 which means the numRetries should be zero. If unspecified or set
to zero, then the Envoy default of 1 is used.

Signed-off-by: Steve Sloka <[email protected]>
@youngnick youngnick requested a review from a team as a code owner November 11, 2021 05:13
@youngnick youngnick requested review from stevesloka and sunjayBhatia and removed request for a team November 11, 2021 05:13
@codecov
Copy link

codecov bot commented Nov 11, 2021

Codecov Report

Merging #4174 (8c2e19e) into release-1.18 (5de4f21) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@               Coverage Diff                @@
##           release-1.18    #4174      +/-   ##
================================================
+ Coverage         77.65%   77.66%   +0.01%     
================================================
  Files               112      112              
  Lines              8977     8990      +13     
================================================
+ Hits               6971     6982      +11     
- Misses             1857     1859       +2     
  Partials            149      149              
Impacted Files Coverage Δ
internal/annotation/annotations.go 100.00% <100.00%> (ø)
internal/dag/policy.go 93.45% <100.00%> (+0.03%) ⬆️
internal/sorter/sorter.go 97.60% <0.00%> (-1.20%) ⬇️

Copy link
Member

@stevesloka stevesloka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a code regen.

Signed-off-by: Nick Young <[email protected]>
@youngnick
Copy link
Member Author

Merging this with admin powers so I can get the release cut.

@youngnick youngnick merged commit 7bbb6ed into projectcontour:release-1.18 Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants