-
Notifications
You must be signed in to change notification settings - Fork 101
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
Watch UpstreamSettingsPolicies and translate into dataplane configuration #2887
Watch UpstreamSettingsPolicies and translate into dataplane configuration #2887
Conversation
internal/mode/static/nginx/config/policies/upstreamsettings/validator.go
Outdated
Show resolved
Hide resolved
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.
LGTM after singular change 🚀
internal/mode/static/nginx/config/policies/upstreamsettings/validator.go
Outdated
Show resolved
Hide resolved
ce451fd
to
3b2c6ac
Compare
…he service belongs to the winning gateway
@bjee19 @sjberman re-requested reviews because I pushed a new commit: 3ed9e17 During manual testing yesterday, I found a bug where we were not writing status to the upstream settings policy when the Gateway was invalid. This is because we only added services to the ReferencedServices map if they were attached to at least one parent ref. This behavior also caused misleading status on routes that were attached to invalid Gateways when the Services they reference were processed after the route itself. The route would have |
b968639
into
nginx:feature/upstream-settings-policy
…tion (nginx#2887) Problem: As a userI want NGF to take my configuration for an UpstreamSettingsPolicy and transform it into data plane configuration within NGF, so that NGF can then translate those settings into NGINX configuration, and so that NGF maintains an abstraction layer between data plane configuration and the specific data plane NGF uses. Solution: Add controller to watch UpstreamSettingsPolicies, and store them in the cluster state as generic NGF Policies. Update the graph to validate and process these policies and attach them to the relevant Services. When building the dataplane configuration, store the policies on the relevant http upstreams.
…tion (#2887) Problem: As a userI want NGF to take my configuration for an UpstreamSettingsPolicy and transform it into data plane configuration within NGF, so that NGF can then translate those settings into NGINX configuration, and so that NGF maintains an abstraction layer between data plane configuration and the specific data plane NGF uses. Solution: Add controller to watch UpstreamSettingsPolicies, and store them in the cluster state as generic NGF Policies. Update the graph to validate and process these policies and attach them to the relevant Services. When building the dataplane configuration, store the policies on the relevant http upstreams.
Proposed changes
Problem: As a user
I want NGF to take my configuration for an UpstreamSettingsPolicy and transform it into data plane configuration within NGF
So that NGF can then translate those settings into NGINX configuration
And so that NGF maintains an abstraction layer between data plane configuration and the specific data plane NGF uses.
Solution: Add controller to watch UpstreamSettingsPolicies, and store them in the cluster state as generic NGF Policies. Update the graph to validate and process these policies and attach them to the relevant Services. When building the dataplane configuration, store the policies on the relevant http upstreams.
Testing:
Closes #2810 #2812
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.