Skip to content

Adds Initial Support for Infra IR Metadata#350

Merged
danehans merged 1 commit intoenvoyproxy:mainfrom
danehans:issue_173
Sep 8, 2022
Merged

Adds Initial Support for Infra IR Metadata#350
danehans merged 1 commit intoenvoyproxy:mainfrom
danehans:issue_173

Conversation

@danehans
Copy link
Copy Markdown
Contributor

@danehans danehans commented Sep 7, 2022

  • Adds metadata.labels to the ProxyInfra IR. This allows the gatewayapi translator to plumb metadata from Gateway API resources, e.g. Gateway ns/name, into managed infra without polluting the IR with Gateway API-isms.
  • Updates the gatewayapi translator to apply ProxyInfra metadata labels based upon managed Gateway ns and name.

Note: selfLink is not used for metadata IR since it's deprecated and no longer set by Kubernetes.

Fixes #173

Signed-off-by: danehans [email protected]

@danehans danehans requested a review from a team as a code owner September 7, 2022 02:01
@danehans danehans added area/ir Issues related to Gateway's internal representation, e.g. data model. area/translator Issues related to Gateway's translation service, e.g. translating Gateway APIs into the IR. labels Sep 7, 2022
@danehans danehans added this to the 0.2.0-rc2 milestone Sep 7, 2022
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Merging #350 (9a4df4d) into main (76a5289) will increase coverage by 0.26%.
The diff coverage is 41.02%.

@@            Coverage Diff             @@
##             main     #350      +/-   ##
==========================================
+ Coverage   58.66%   58.92%   +0.26%     
==========================================
  Files          32       32              
  Lines        2869     2907      +38     
==========================================
+ Hits         1683     1713      +30     
- Misses       1087     1097      +10     
+ Partials       99       97       -2     
Impacted Files Coverage Δ
internal/ir/zz_generated.deepcopy.go 0.00% <0.00%> (ø)
internal/ir/infra.go 70.37% <62.50%> (-0.87%) ⬇️
internal/gatewayapi/translator.go 85.81% <100.00%> (+0.24%) ⬆️
internal/provider/kubernetes/httproute.go 72.00% <0.00%> (+10.00%) ⬆️

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

@LukeShu LukeShu self-requested a review September 8, 2022 08:50
Copy link
Copy Markdown
Contributor

@LukeShu LukeShu left a comment

Choose a reason for hiding this comment

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

I hadn't realized that selflink was deprecated. lgtm

@danehans danehans merged commit d760ac8 into envoyproxy:main Sep 8, 2022
@danehans danehans deleted the issue_173 branch September 8, 2022 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ir Issues related to Gateway's internal representation, e.g. data model. area/translator Issues related to Gateway's translation service, e.g. translating Gateway APIs into the IR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Internal Metadata API

4 participants