Skip to content

chore: migrate from Endpoints to endpointSlice#73

Merged
starbops merged 1 commit into
harvester:mainfrom
Vicente-Cheng:move-to-endpointslice
Jul 16, 2026
Merged

chore: migrate from Endpoints to endpointSlice#73
starbops merged 1 commit into
harvester:mainfrom
Vicente-Cheng:move-to-endpointslice

Conversation

@Vicente-Cheng

Copy link
Copy Markdown
Contributor

Problem:

We need to migrate from Endpoints to endpointSlice.
REF: https://kubernetes.io/blog/2025/04/24/endpoints-deprecation/

Solution:

migrate from Endpoints to endpointSlice

Related Issue(s):

harvester/harvester#9381

Test plan:

Additional documentation or context

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the e2e suite’s metrics-service readiness check to use Kubernetes EndpointSlice resources instead of the deprecated Endpoints API, aligning the test with the ongoing migration work referenced in harvester/harvester#9381.

Changes:

  • Switch the e2e “metrics endpoint ready” verification from kubectl get endpoints to kubectl get endpointslices filtered by kubernetes.io/service-name.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/e2e/e2e_test.go Outdated
Comment on lines 206 to 210
cmd := exec.Command("kubectl", "get", "endpointslices", "-n", namespace,
"-l", "kubernetes.io/service-name="+metricsServiceName, "-o", "yaml")
output, err := utils.Run(cmd)
g.Expect(err).NotTo(HaveOccurred())
g.Expect(output).To(ContainSubstring("8443"), "Metrics endpoint is not ready")
@Vicente-Cheng
Vicente-Cheng force-pushed the move-to-endpointslice branch from d545849 to 317ffb9 Compare July 13, 2026 12:59
@mergify

mergify Bot commented Jul 14, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@starbops starbops left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thank you.

@starbops
starbops merged commit 64e3aae into harvester:main Jul 16, 2026
12 checks passed
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.

4 participants