Skip to content

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
@youngnick youngnick force-pushed the 1449-add-pending-reason branch from 7f441fe to a43c8f9 Compare October 12, 2022 00:09
Signed-off-by: Nick Young <[email protected]>
@youngnick youngnick force-pushed the 1449-add-pending-reason branch from a43c8f9 to cc354e8 Compare October 12, 2022 00:09
@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

// 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