-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement ClientSettingsPolicy #1940
Implement ClientSettingsPolicy #1940
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1940 +/- ##
==========================================
+ Coverage 87.04% 87.66% +0.62%
==========================================
Files 89 93 +4
Lines 6096 6557 +461
Branches 50 50
==========================================
+ Hits 5306 5748 +442
- Misses 737 753 +16
- Partials 53 56 +3 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on this!
I wonder if we want a tech-debt issue to rework BackendTLSPolicy at some point to use this new framework. |
Is the PolicyAncestorStatus supposed to apply to Inherited policies? I thought I read that it only applies to direct policies. |
Yeah, currently, it is only required for direct policies, but there's been some discussion to include it on inherited policies. Plus, the spec is moving towards collapsing direct and inherited policies into one policy type with a strategy field. @pleshakov talked me into including PolicyAncestorStatus on the ClientSettingsPolicy here: #1793 (comment) |
This might be tricky. We'd have to create a wrapper class to pass it around like an NGF Policy. Then, we'd have to figure out how to genericize the ConfigMap resolving part. I'm sure it can be done, but it's not an easy lift. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @kate-osborn! 🚀
390fe3c
to
d083026
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 🚀 🚀
916f58e
to
2842083
Compare
Proposed changes
Write a clear and concise description that helps reviewers understand the purpose and impact of your changes. Use the
following format:
Problems:
Solution: Implement ClientSettingsPolicy API.
Testing: Manually tested the following cases:
Closes #1792 #1760
Checklist
Before creating a PR, run through this checklist and mark each as complete.
Release notes
If this PR introduces a change that affects users and needs to be mentioned in the release notes,
please add a brief note that summarizes the change.