Skip to content

Handle IR Deletes#442

Merged
arkodg merged 5 commits intoenvoyproxy:mainfrom
arkodg:handle-ir-deletes
Sep 29, 2022
Merged

Handle IR Deletes#442
arkodg merged 5 commits intoenvoyproxy:mainfrom
arkodg:handle-ir-deletes

Conversation

@arkodg
Copy link
Contributor

@arkodg arkodg commented Sep 28, 2022

  • Add a function that computes which keys to delete in the gateway-api runner

  • Delete above keys from the Infra and Xds IR maps

  • Update infra and xds runners to trigger deletes when a delete notification is recieved.

Fixes: #423

Signed-off-by: Arko Dasgupta arko@tetrate.io

@arkodg arkodg requested a review from a team as a code owner September 28, 2022 01:27
@arkodg arkodg added area/ir Issues related to Gateway's internal representation, e.g. data model. area/message-service Issues related to Gateway's message service used for communication among components. area/translator Issues related to Gateway's translation service, e.g. translating Gateway APIs into the IR. area/xds-server Issues related to the xDS Server used for managing Envoy configuration. area/infra-mgr Issues related to the provisioner used for provisioning the managed Envoy Proxy fleet. labels Sep 28, 2022
@arkodg arkodg added this to the 0.2.0-rc2 milestone Sep 28, 2022
@codecov-commenter
Copy link

codecov-commenter commented Sep 28, 2022

Codecov Report

Merging #442 (52a799b) into main (54b26e2) will increase coverage by 0.43%.
The diff coverage is 54.54%.

@@            Coverage Diff             @@
##             main     #442      +/-   ##
==========================================
+ Coverage   60.04%   60.48%   +0.43%     
==========================================
  Files          40       40              
  Lines        4337     4375      +38     
==========================================
+ Hits         2604     2646      +42     
+ Misses       1582     1580       -2     
+ Partials      151      149       -2     
Impacted Files Coverage Δ
internal/envoygateway/config/config.go 0.00% <ø> (ø)
internal/infrastructure/kubernetes/infra.go 68.49% <0.00%> (ø)
internal/xds/server/runner/runner.go 23.15% <0.00%> (-1.57%) ⬇️
internal/gatewayapi/runner/runner.go 56.66% <55.55%> (+0.87%) ⬆️
internal/xds/translator/runner/runner.go 76.66% <68.75%> (+4.66%) ⬆️
internal/infrastructure/kubernetes/configmap.go 86.53% <100.00%> (+0.53%) ⬆️
internal/infrastructure/kubernetes/deployment.go 89.37% <100.00%> (ø)
... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@arkodg arkodg force-pushed the handle-ir-deletes branch 2 times, most recently from 52a799b to f20a98b Compare September 28, 2022 15:38
Arko Dasgupta added 2 commits September 28, 2022 14:19
* Add a function that computes which keys to delete in the gateway-api
runner

* Delete above keys from the Infra and Xds IR maps

* Update infra and xds runners to trigger deletes when a delete
notification is recieved.

Fixes: envoyproxy#423

Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
@arkodg arkodg requested a review from LukeShu September 28, 2022 21:36
Arko Dasgupta added 3 commits September 28, 2022 15:28
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Copy link
Member

@Alice-Lilith Alice-Lilith left a comment

Choose a reason for hiding this comment

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

lgtm

@arkodg
Copy link
Contributor Author

arkodg commented Sep 29, 2022

telepresenceio/watchable#6 can be used in the future to improve perf since we wouldn't need to loop across the IR keys multiple times

@arkodg arkodg merged commit b10f262 into envoyproxy:main Sep 29, 2022
@arkodg arkodg deleted the handle-ir-deletes branch September 29, 2022 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/infra-mgr Issues related to the provisioner used for provisioning the managed Envoy Proxy fleet. area/ir Issues related to Gateway's internal representation, e.g. data model. area/message-service Issues related to Gateway's message service used for communication among components. area/translator Issues related to Gateway's translation service, e.g. translating Gateway APIs into the IR. area/xds-server Issues related to the xDS Server used for managing Envoy configuration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle IR deletes

4 participants