Repository navigation
fix: retrigger reconciliation when backendRef of type ServiceImport is updated - #5461
Conversation
…updated Signed-off-by: Teju Nareddy <[email protected]>
8cc5b98 to
c4750e7
Compare
|
seeing some test failures @nareddyt |
muwaqar
left a comment
There was a problem hiding this comment.
left a nit comment for clarity in release notes.
Signed-off-by: Teju Nareddy <[email protected]>
11921bf to
2e59c34
Compare
# Conflicts: # release-notes/current.yaml
Thanks, my IDE was misconfigured and did not compile these files locally because they are integration tests. Fixed |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5461 +/- ##
==========================================
- Coverage 65.31% 65.20% -0.11%
==========================================
Files 213 213
Lines 33942 33957 +15
==========================================
- Hits 22168 22141 -27
- Misses 10447 10484 +37
- Partials 1327 1332 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/retest |
Not sure how to fix this. These lines of code are definitely covered |
|
yeah the coverage failure is fine here @nareddyt, there's a test in this PR |
…s updated (envoyproxy#5461) * fix: retrigger reconilation when backendRef of type ServiceImport is updated Signed-off-by: Teju Nareddy <[email protected]> (cherry picked from commit e2f8978) Signed-off-by: Guy Daich <[email protected]>
* load BackendTLSPolicy in standalone mode (#5431) Signed-off-by: Arko Dasgupta <[email protected]> (cherry picked from commit 4d914ae) Signed-off-by: Guy Daich <[email protected]> * Wasm: cache Wasm OCI image permission check results (#5358) * add TTL for wasm permission check Signed-off-by: Huabing (Robin) Zhao <[email protected]> * fix test Signed-off-by: Huabing (Robin) Zhao <[email protected]> * change Signed-off-by: Huabing (Robin) Zhao <[email protected]> * refresh the cache Signed-off-by: Huabing (Robin) Zhao <[email protected]> * purge the cache Signed-off-by: Huabing (Robin) Zhao <[email protected]> * refactor Signed-off-by: Huabing (Robin) Zhao <[email protected]> * on retry on retriable errors Signed-off-by: Huabing (Robin) Zhao <[email protected]> * add release note Signed-off-by: Huabing (Robin) Zhao <[email protected]> --------- Signed-off-by: Huabing (Robin) Zhao <[email protected]> (cherry picked from commit 672de8a) Signed-off-by: Guy Daich <[email protected]> * Load EnvoyExtensionPolicy in standalone mode (#5460) * load EnvoyExtensionPolicy in standalone mode Signed-off-by: Takeshi Yoneda <[email protected]> * more Signed-off-by: Takeshi Yoneda <[email protected]> * release note Signed-off-by: Takeshi Yoneda <[email protected]> * review: use a valid target name instead of myapp Signed-off-by: Takeshi Yoneda <[email protected]> * gen Signed-off-by: Takeshi Yoneda <[email protected]> --------- Signed-off-by: Takeshi Yoneda <[email protected]> (cherry picked from commit 4be098d) Signed-off-by: Guy Daich <[email protected]> * fix: check for mirror backendRef in httproute index (#5497) * check for mirror backendRef Signed-off-by: mark winter <[email protected]> (cherry picked from commit 72b72c4) Signed-off-by: Guy Daich <[email protected]> * fix: dont return an err when gatewayclass is not accepted (#5524) * bug: dont return an err when gatewayclass is not accepted this is a user generated error, we shouldnt log it as a system error, and return with an error Signed-off-by: Arko Dasgupta <[email protected]> * release notes Signed-off-by: Arko Dasgupta <[email protected]> --------- Signed-off-by: Arko Dasgupta <[email protected]> (cherry picked from commit 51e87ca) Signed-off-by: Guy Daich <[email protected]> * fix: host header should not be allowed to modify (#5533) * host header is not allowed to be modified Signed-off-by: Huabing (Robin) Zhao <[email protected]> * address comment Signed-off-by: Huabing (Robin) Zhao <[email protected]> --------- Signed-off-by: Huabing (Robin) Zhao <[email protected]> (cherry picked from commit 54efa34) Signed-off-by: Guy Daich <[email protected]> * fix: retrigger reconciliation when backendRef of type ServiceImport is updated (#5461) * fix: retrigger reconilation when backendRef of type ServiceImport is updated Signed-off-by: Teju Nareddy <[email protected]> (cherry picked from commit e2f8978) Signed-off-by: Guy Daich <[email protected]> * pin envoy and ratelimit Signed-off-by: Guy Daich <[email protected]> * fix: otel sink json access logging without text field (#5498) * fix otel sink json access logging without text field Signed-off-by: Tomi Juntunen <[email protected]> * use json format as default when format or type is not set Signed-off-by: Tomi Juntunen <[email protected]> * set formatters only if the slice of formatters is not empty Signed-off-by: Tomi Juntunen <[email protected]> --------- Signed-off-by: Tomi Juntunen <[email protected]> Co-authored-by: Arko Dasgupta <[email protected]> (cherry picked from commit cb3ffd2) Signed-off-by: Guy Daich <[email protected]> * [release/v1.3] v1.3.2 release notes (#5584) v1.3.2 release notes Signed-off-by: Guy Daich <[email protected]> --------- Signed-off-by: Arko Dasgupta <[email protected]> Signed-off-by: Guy Daich <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Takeshi Yoneda <[email protected]> Signed-off-by: mark winter <[email protected]> Signed-off-by: Teju Nareddy <[email protected]> Signed-off-by: Tomi Juntunen <[email protected]> Co-authored-by: Arko Dasgupta <[email protected]> Co-authored-by: Huabing (Robin) Zhao <[email protected]> Co-authored-by: Takeshi Yoneda <[email protected]> Co-authored-by: Mark Winter <[email protected]> Co-authored-by: Teju Nareddy <[email protected]> Co-authored-by: Tomi Juntunen <[email protected]>
Problem
Currently, when a HTTPRoute references a ServiceImport, a new reconcile is NOT triggered when:
Fix
This PR adds ServiceImport to the
backendHTTPRouteIndexFunc, ensuring a reconcile is triggered when ServiceImport changes or the underlying EndpointSlices change.Testing Done
Add new test case under
TestValidateEndpointSliceForReconcile. It was failing before the code change, but now it passes.Needed some minor refactoring of test setup code to support ServiceImport backendRef.
Additional Info
Fixes #5258
Release Notes: Yes