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

Set backend_not_found route status when any backends are not found #12565

Merged
merged 3 commits into from
May 10, 2024

Conversation

adleong
Copy link
Member

@adleong adleong commented May 8, 2024

The policy controller sets a status on HttpRoute resources depending on the state of the backends. If all the backends can be resolved, it should set a resolved_ref status and if any of the backends cannot be resolved, it should set a backend_not_found status.

We update the logic to reflect this. Additionally, this resolves the edge case where an empty list of backends was resulting in a backend_not_found status instead of a resolved_refs status.

@adleong adleong requested a review from a team as a code owner May 8, 2024 00:11
Copy link
Member

@olix0r olix0r left a comment

Choose a reason for hiding this comment

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

Is this testable?

@adleong adleong merged commit ad49cd1 into main May 10, 2024
41 checks passed
@adleong adleong deleted the alex/empty-backends branch May 10, 2024 16:22
the-wondersmith added a commit to the-wondersmith/linkerd2 that referenced this pull request May 15, 2024
* origin/policy-feat-grpcroute-status-support:
  chore(ci): merge fixes from origin/main
  build(deps): bump tj-actions/changed-files from 44.3.0 to 44.4.0 (linkerd#12588)
  build(deps): bump github.com/fatih/color from 1.16.0 to 1.17.0 (linkerd#12590)
  chore(ci): Remove conditional integration testing (linkerd#12591)
  build(deps-dev): bump sinon from 17.0.1 to 17.0.2 in /web/app (linkerd#12587)
  build(deps): bump github.com/prometheus/client_golang (linkerd#12586)
  build(deps): bump thiserror from 1.0.59 to 1.0.60 (linkerd#12585)
  Revert "Fix destination staleness issue when adding EndpointSlices (linkerd#12427)" (linkerd#12589)
  Add outbound index metrics to the policy controller (linkerd#12429)
  build(deps): bump tj-actions/changed-files from 44.3.0 to 44.4.0 (linkerd#12588)
  build(deps): bump github.com/fatih/color from 1.16.0 to 1.17.0 (linkerd#12590)
  chore(ci): Remove conditional integration testing (linkerd#12591)
  build(deps-dev): bump sinon from 17.0.1 to 17.0.2 in /web/app (linkerd#12587)
  build(deps): bump github.com/prometheus/client_golang (linkerd#12586)
  build(deps): bump thiserror from 1.0.59 to 1.0.60 (linkerd#12585)
  Revert "Fix destination staleness issue when adding EndpointSlices (linkerd#12427)" (linkerd#12589)
  Set backend_not_found route status when any backends are not found (linkerd#12565)
  Add outbound index metrics to the policy controller (linkerd#12429)

Signed-off-by: Mark S <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants