Skip to content

Check serving addresses in provider service's endpointslice#50

Merged
ulucinar merged 1 commit intocrossplane:mainfrom
ulucinar:check-ready-ips
Oct 7, 2025
Merged

Check serving addresses in provider service's endpointslice#50
ulucinar merged 1 commit intocrossplane:mainfrom
ulucinar:check-ready-ips

Conversation

@ulucinar
Copy link
Copy Markdown
Collaborator

@ulucinar ulucinar commented Oct 6, 2025

Description of your changes

Related PR: crossplane-contrib/provider-upjet-azure#1074

We now start checking for non-terminating serving addresses in the provider webhook's service endpointslice. Endpoints API is officially deprecated as of Kubernetes 1.33. We rely on the serving condition to check the provider service's endpointslice. And it should also be in non-terminating state too.

With the readiness probes being introduced for the (official) providers starting with crossplane-contrib/provider-upjet-azure#1074, we need to make sure that at least one pod is ready to handle (API conversion) requests for uptest.

I have:

  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Manually tested the script. When the endpoint is ready, it exists with 0 after logging something like the following:

provider-family-azure-w5zk5 - Serving addresses [10.244.0.29] found in endpointslice

If there are no ready provider pods, then it exists with a non-zero code after logging something like the following:

provider-family-azure-w5zk5 - No serving addresses in endpointslice
Retrying... (1/10)
provider-family-azure-w5zk5 - No serving addresses in endpointslice
Retrying... (2/10)
provider-family-azure-w5zk5 - No serving addresses in endpointslice
Retrying... (3/10)
provider-family-azure-w5zk5 - No serving addresses in endpointslice
Retrying... (4/10)
provider-family-azure-w5zk5 - No serving addresses in endpointslice
Retrying... (5/10)
provider-family-azure-w5zk5 - No serving addresses in endpointslice
Retrying... (6/10)
provider-family-azure-w5zk5 - No serving addresses in endpointslice
Retrying... (7/10)
provider-family-azure-w5zk5 - No serving addresses in endpointslice
Retrying... (8/10)
provider-family-azure-w5zk5 - No serving addresses in endpointslice
Retrying... (9/10)
provider-family-azure-w5zk5 - No serving addresses in endpointslice
Retrying... (10/10)

@ulucinar ulucinar requested a review from sergenyalcin as a code owner October 6, 2025 12:35
@ulucinar ulucinar changed the title Check ready addresses in addition to the ports in provider service's endpoints Check serving addresses in provider service's endpointslice Oct 7, 2025
- Use endpointslices instead of the endpoints as endpoints
  are deprecated from 1.33+.

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
Copy link
Copy Markdown
Member

@sergenyalcin sergenyalcin left a comment

Choose a reason for hiding this comment

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

Thanks @ulucinar LGTM!

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.

2 participants