provider: only store resource if spec has changed#480
provider: only store resource if spec has changed#480arkodg merged 8 commits intoenvoyproxy:mainfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## main #480 +/- ##
==========================================
- Coverage 62.51% 62.49% -0.02%
==========================================
Files 42 42
Lines 4498 4509 +11
==========================================
+ Hits 2812 2818 +6
- Misses 1540 1547 +7
+ Partials 146 144 -2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
|
blocked on #508 |
5a5f877 to
eafda12
Compare
|
I remember that if we I tried by replacing the Status update with u.client.Status().Patch(context.Background(), newObj, client.MergeFrom(newObj))and it seems to be working fine for me. |
|
Also, just checking if the |
does |
for translation, the spec affects a translation change (for now) so imho this approach should be safe for now |
Leverage the metadata.Generation field to consider whether to update the newly reconciled resource into the watchable map which will trigger translations in the backend. Fixes: envoyproxy#407 Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
b126877 to
75243c6
Compare
|
@arkodg should the same be done for HTTPRoutes? |
|
@danehans the diffs in this commit apply to HTTPRoutes as well |
Leverage the metadata.Generation field to consider whether to update the newly reconciled resource into the watchable map which will trigger translations in the backend.
Fixes: #407
Signed-off-by: Arko Dasgupta arko@tetrate.io