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 Pending reason to GatewayClass, Gateway, Listener, and Routes #1453

Merged
merged 2 commits into from
Oct 13, 2022

Conversation

youngnick
Copy link
Contributor

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

What this PR does / why we need it:
This adds a Pending Reason to:

  • GatewayClass
  • Gateway
  • Listener
  • Route

And deprecates the old Reasons associated with Unknown state.
Which issue(s) this PR fixes:

Fixes #1449

Does this PR introduce a user-facing change?:

A `Pending` Reason has been added to Conditions to harmonize the unreconciled state across objects.
GatewayClass, Gateway, and Route `Accepted` Conditions have been updated.

@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 cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Oct 11, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: youngnick

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

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 11, 2022
@youngnick youngnick requested review from mikemorris and removed request for keithmattix October 11, 2022 23:29
Signed-off-by: Nick Young <[email protected]>
@robscott
Copy link
Member

Thanks @youngnick!

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 13, 2022
@k8s-ci-robot k8s-ci-robot merged commit ff862f1 into kubernetes-sigs:main Oct 13, 2022
@@ -229,6 +233,9 @@ const (

// This reason is used with the "Accepted" condition when no controller has
// reconciled the Gateway.
GatewayReasonPending GatewayConditionReason = "Pending"
Copy link
Contributor

@mikemorris mikemorris Oct 13, 2022

Choose a reason for hiding this comment

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

Nit, but I think this should be updated to match the Listener documentation to note it should also be used with the "Ready" condition when the status is "Unknown", added as a task to #1454

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
None yet
Development

Successfully merging this pull request may close these issues.

Add "Pending" reason and document usage for condition "Accepted", status: "Unknown" on all resources
4 participants