Skip to content

feat: add PolicyStatus for EnvoyPatchPolicy#2910

Merged
Xunzhuo merged 5 commits intoenvoyproxy:mainfrom
shawnh2:policy-status-for-epp
Mar 14, 2024
Merged

feat: add PolicyStatus for EnvoyPatchPolicy#2910
Xunzhuo merged 5 commits intoenvoyproxy:mainfrom
shawnh2:policy-status-for-epp

Conversation

@shawnh2
Copy link
Copy Markdown
Contributor

@shawnh2 shawnh2 commented Mar 13, 2024

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #2631

shawnh2 added 3 commits March 13, 2024 15:49
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
@shawnh2 shawnh2 requested a review from a team as a code owner March 13, 2024 08:06
`,
expect: true,
},
// TODO(sh2): add a policy status test for egctl x status cmd
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

will update egctl x status as a follow-up

@shawnh2
Copy link
Copy Markdown
Contributor Author

shawnh2 commented Mar 13, 2024

/retest

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 13, 2024

Codecov Report

Attention: Patch coverage is 49.76303% with 106 lines in your changes are missing coverage. Please review.

Project coverage is 64.52%. Comparing base (c734f29) to head (c4fae25).

❗ Current head c4fae25 differs from pull request most recent head ffb3354. Consider uploading reports for the commit ffb3354 to get more accurate results

Files Patch % Lines
internal/xds/translator/jsonpatch.go 32.47% 79 Missing ⚠️
internal/status/envoypatchpolicy.go 0.00% 23 Missing ⚠️
internal/gatewayapi/envoypatchpolicy.go 98.52% 1 Missing ⚠️
internal/ir/zz_generated.deepcopy.go 0.00% 1 Missing ⚠️
internal/provider/kubernetes/controller.go 0.00% 1 Missing ⚠️
internal/provider/kubernetes/status.go 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2910      +/-   ##
==========================================
+ Coverage   64.45%   64.52%   +0.07%     
==========================================
  Files         122      122              
  Lines       21037    21092      +55     
==========================================
+ Hits        13559    13610      +51     
- Misses       6630     6634       +4     
  Partials      848      848              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Xunzhuo
Copy link
Copy Markdown
Member

Xunzhuo commented Mar 13, 2024

/retest

@arkodg arkodg requested a review from zhaohuabing March 13, 2024 22:47
Copy link
Copy Markdown
Member

@zhaohuabing zhaohuabing left a comment

Choose a reason for hiding this comment

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

This looks really great! Just a tiny nit.

Signed-off-by: shawnh2 <shawnhxh@outlook.com>
Copy link
Copy Markdown
Member

@Xunzhuo Xunzhuo left a comment

Choose a reason for hiding this comment

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

Looks like all of our polcies has been implemented the policystatus, great job!

@Xunzhuo Xunzhuo merged commit d00efdc into envoyproxy:main Mar 14, 2024
@shawnh2 shawnh2 deleted the policy-status-for-epp branch March 14, 2024 07:01
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.

Replace Status with PolicyAncestorStatus in CTP, BTP and SP

4 participants