Skip to content

feat: migration from endpoint to endpointslice#5008

Merged
Skarlso merged 6 commits intoexternal-secrets:mainfrom
xvirgov:fix/endpointslice-migration
Aug 6, 2025
Merged

feat: migration from endpoint to endpointslice#5008
Skarlso merged 6 commits intoexternal-secrets:mainfrom
xvirgov:fix/endpointslice-migration

Conversation

@xvirgov
Copy link
Copy Markdown
Contributor

@xvirgov xvirgov commented Jul 7, 2025

Problem Statement

Migrate from endpoints to endpointslices

Related Issue

Fixes #4992

Proposed Changes

How do you like to solve the issue and why?

Checklist

  • I have read the contribution guidelines
  • All commits are signed with git commit --signoff
  • My changes have reasonable test coverage
  • All tests pass with make test
  • I ensured my PR is ready for review with make reviewable

@xvirgov xvirgov requested a review from a team as a code owner July 7, 2025 19:20
@xvirgov xvirgov requested a review from gusfcarvalho July 7, 2025 19:20
@gusfcarvalho
Copy link
Copy Markdown
Member

hi! Can you fix the errors CI brought up? :)

@xvirgov xvirgov force-pushed the fix/endpointslice-migration branch 4 times, most recently from 792e663 to e87d385 Compare July 28, 2025 13:23
@xvirgov
Copy link
Copy Markdown
Contributor Author

xvirgov commented Jul 28, 2025

Hey @gusfcarvalho , really sorry for the late reply.. I was able to return to it only now.
I made the necessary changes for the pipeline to pass (DCO+sonar).
I'll need approval to run the managed e2e tests? Or how do I proceed? Sorry, first time contributing to the project..

@Skarlso
Copy link
Copy Markdown
Contributor

Skarlso commented Jul 29, 2025

/ok-to-test sha=e87d38594076b36aaabaa37d6721fd05905ba11d

@Skarlso
Copy link
Copy Markdown
Contributor

Skarlso commented Jul 29, 2025

@xvirgov Ah looks like helm tests need a bit of adjusting. :)

@eso-service-account-app
Copy link
Copy Markdown
Contributor

@xvirgov
Copy link
Copy Markdown
Contributor Author

xvirgov commented Jul 30, 2025

@xvirgov Ah looks like helm tests need a bit of adjusting. :)

Hello @Skarlso , before I proceed, I'd like to know your opinion about the modifications. Which of the following options would be better?

  1. Before "Run chart-testing (install)" build the images from the PR code and load them to the kind cluster, then use the development version of images in ct install command. What worries me about these changes is that I'm not completely sure about the flow of the testing since I'm new here, maybe it's desirable to do ct install of chart versions against the app version from main?
  2. Leave in rbac for edpoints and clean it in another pr.

Thank you for the help :)

@Skarlso
Copy link
Copy Markdown
Contributor

Skarlso commented Jul 30, 2025

Oh I see since endpoints is forbidden. I would say leave it in for now especially for backwards compatibility, right?

@xvirgov
Copy link
Copy Markdown
Contributor Author

xvirgov commented Jul 30, 2025

Oh I see since endpoints is forbidden. I would say leave it in for now especially for backwards compatibility, right?

In the other operators they remove "endpoints" completely from rbac, see kube-prometheus and ext-dns. But I would agree to go with the easy way and keep it in for the sake of the tests. I'll make the change

@xvirgov xvirgov force-pushed the fix/endpointslice-migration branch from e4ac59b to 52eda1b Compare July 30, 2025 09:20
@Skarlso
Copy link
Copy Markdown
Contributor

Skarlso commented Jul 30, 2025

Oh I see since endpoints is forbidden. I would say leave it in for now especially for backwards compatibility, right?

In the other operators they remove "endpoints" completely from rbac, see kube-prometheus and ext-dns. But I would agree to go with the easy way and keep it in for the sake of the tests. I'll make the change

Yah, you're right. And we should probably follow suite eventually, I agree. :) But as you said, we should go with the easier route for now and then leave this as a cleanup.

@xvirgov
Copy link
Copy Markdown
Contributor Author

xvirgov commented Aug 4, 2025

@Skarlso , I pulled from upstream the latest changes, so now the helm unittests should pass. Could you please retrigger?

@Skarlso
Copy link
Copy Markdown
Contributor

Skarlso commented Aug 5, 2025

/ok-to-test sha=496bef2f3469333ac5694a17707ce01dc9f79dae

@Skarlso
Copy link
Copy Markdown
Contributor

Skarlso commented Aug 5, 2025

Did you also merge my e2e test fix?

@eso-service-account-app
Copy link
Copy Markdown
Contributor

[Bot] - ✅ e2e for passed

@xvirgov
Copy link
Copy Markdown
Contributor Author

xvirgov commented Aug 5, 2025

Did you also merge my e2e test fix?

@Skarlso , this one? Yes, I rebased my branch from the latest changes that were in yesterday and this is few days old. I also checked the "make helm.test" to verify that the issue is fixed. Or do you mean something else?

xvirgov added 4 commits August 5, 2025 16:12
Signed-off-by: Michal Virgovic <michal.virgovic1@gmail.com>
Signed-off-by: Michal Virgovic <michal.virgovic1@gmail.com>
Signed-off-by: Michal Virgovic <michal.virgovic1@gmail.com>
Signed-off-by: Michal Virgovic <michal.virgovic1@gmail.com>
@xvirgov xvirgov force-pushed the fix/endpointslice-migration branch from 496bef2 to 37837b4 Compare August 5, 2025 14:12
@Skarlso
Copy link
Copy Markdown
Contributor

Skarlso commented Aug 5, 2025

Yah it's okay. The e2e test passed so it was running the latest test. :)

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Aug 6, 2025

@Skarlso Skarlso merged commit e212695 into external-secrets:main Aug 6, 2025
3 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.

Change: transition from endpoints to endpointslices

3 participants