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

Adding a controller field to GatewayReference in RouteGatewayStatus #616

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

robscott
Copy link
Member

What type of PR is this?
/kind cleanup
/kind api-change

What this PR does / why we need it:
This adds controller to GatewayReference in RouteGatewayStatus. This will be especially helpful for cleaning up old entries in status.

Which issue(s) this PR fixes:
Fixes #591

Does this PR introduce a user-facing change?:

Route status now includes controller name for each Gateway.

/cc @hbagdi @howardjohn @stevesloka

@k8s-ci-robot k8s-ci-robot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API labels Apr 20, 2021
@k8s-ci-robot
Copy link
Contributor

@robscott: GitHub didn't allow me to request PR reviews from the following users: howardjohn, stevesloka.

Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

What type of PR is this?
/kind cleanup
/kind api-change

What this PR does / why we need it:
This adds controller to GatewayReference in RouteGatewayStatus. This will be especially helpful for cleaning up old entries in status.

Which issue(s) this PR fixes:
Fixes #591

Does this PR introduce a user-facing change?:

Route status now includes controller name for each Gateway.

/cc @hbagdi @howardjohn @stevesloka

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 20, 2021
@robscott robscott added this to the v0.3.0 milestone Apr 20, 2021
Copy link
Contributor

@stevesloka stevesloka left a comment

Choose a reason for hiding this comment

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

lgtm

I think it would be up to the implementors to make this field unique by prefixing with the controller name on the GatewayClass with something else unique to their implementation.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: robscott, stevesloka

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Contributor

@hbagdi hbagdi left a comment

Choose a reason for hiding this comment

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

Two concerns:

  • GWC is not immutable so someone could change the name of the controller. 🤷🏾 There is only so much we can do using CRDs.
  • Sometimes multiple controllers of the same implementations could be running. I'm assuming that in that case, controller field will be different for each instance of the same implementation. @youngnick Any thoughts?

config/crd/bases/networking.x-k8s.io_httproutes.yaml Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 23, 2021
@robscott
Copy link
Member Author

Thanks for the great feedback on this @hbagdi and @stevesloka! I think I've resolved everything now - PTAL.

@robscott
Copy link
Member Author

@hbagdi Thanks for the great feedback on this one, I think everything should be resolved now. PTAL.

@hbagdi
Copy link
Contributor

hbagdi commented Apr 23, 2021

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 23, 2021
@k8s-ci-robot k8s-ci-robot merged commit 01b86b0 into kubernetes-sigs:master Apr 23, 2021
@robscott robscott deleted the gateway-status-cn branch January 8, 2022 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Handling Route status when multiple controllers are involved
4 participants