Skip to content
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

Add stubbed NginxProxy CRD and watcher #1216

Merged
merged 9 commits into from
Nov 3, 2023

Conversation

sjberman
Copy link
Contributor

@sjberman sjberman commented Nov 2, 2023

Problem: We have two upcoming stories that require the new NginxProxy CRD in order to be worked on.

Solution: To prevent one story from being blocked by the other, this work adds the new CRD with a blank spec, a controller that watches for it and triggers an update, and sets the status on the resource.

Testing: Manually verified that updates are properly handled and status is set.

Please focus on (optional): I left a TODO for whoever implements the CRD fields to add additional unit testing.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

@sjberman sjberman requested a review from a team as a code owner November 2, 2023 16:26
@github-actions github-actions bot added chore Pull requests for routine tasks documentation Improvements or additions to documentation helm-chart Relates to helm chart labels Nov 2, 2023
Copy link
Contributor

@pleshakov pleshakov left a comment

Choose a reason for hiding this comment

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

Shall we also enable pipeline on this branch?

internal/mode/static/state/conditions/conditions.go Outdated Show resolved Hide resolved
internal/mode/static/state/change_processor_test.go Outdated Show resolved Hide resolved
internal/mode/static/state/graph/nginxproxy.go Outdated Show resolved Hide resolved
internal/mode/static/state/graph/gatewayclass.go Outdated Show resolved Hide resolved
internal/framework/status/setters.go Show resolved Hide resolved
docs/gateway-api-compatibility.md Outdated Show resolved Hide resolved
deploy/helm-chart/templates/_helpers.tpl Outdated Show resolved Hide resolved
deploy/helm-chart/values.yaml Outdated Show resolved Hide resolved
deploy/helm-chart/README.md Show resolved Hide resolved
@sjberman
Copy link
Contributor Author

sjberman commented Nov 2, 2023

Shall we also enable pipeline on this branch?

We probably should, but as a separate PR into the main branch.

Problem: We have two upcoming stories that require the new NginxProxy CRD in order to be worked on.

Solution: To prevent one story from being blocked by the other, this work adds the new CRD with a blank spec, a controller that watches for it and triggers an update, and sets the status on the resource.
Copy link
Contributor

@pleshakov pleshakov left a comment

Choose a reason for hiding this comment

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

looks good!
a few consistency issues + some suggestions.

internal/mode/static/state/graph/gatewayclass.go Outdated Show resolved Hide resolved
internal/mode/static/state/graph/gatewayclass.go Outdated Show resolved Hide resolved
internal/mode/static/state/graph/nginxproxy.go Outdated Show resolved Hide resolved
internal/mode/static/state/relationship/capturer.go Outdated Show resolved Hide resolved
@sjberman sjberman requested a review from pleshakov November 3, 2023 19:13
Copy link
Contributor

@pleshakov pleshakov left a comment

Choose a reason for hiding this comment

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

👍

@sjberman sjberman merged commit a73ea7a into nginxinc:feat/data-plane-crd Nov 3, 2023
19 checks passed
@sjberman sjberman deleted the chore/add-crd-stub branch November 3, 2023 20:34
ciarams87 pushed a commit to ciarams87/nginx-gateway-fabric that referenced this pull request Nov 17, 2023
Problem: We have two upcoming stories that require the new NginxProxy CRD in order to be worked on.

Solution: To prevent one story from being blocked by the other, this work adds the new CRD with a blank spec, a controller that watches for it and triggers an update, and sets the status on the resource.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Pull requests for routine tasks documentation Improvements or additions to documentation helm-chart Relates to helm chart
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants