Skip to content

Conversation

@manusa
Copy link
Member

@manusa manusa commented Dec 11, 2025

Initial phases of #577

Sending this for review before going deeper into the rabbit hole and making changes even harder to review (I'll continue to work on the follow ups, but I prefer for you to check if we're going in the right direction).

With this PR we completely decouple the pkg/api from the rest of packages.

It's clear now that on the Provider<-Manager<-Kubernetes<-AccessControlClientSet chain (after this PR Provider<-Manager<-api.KubernetesClient<-api.KubernetesClientSet) the KubernetesClient and KubernetesClientSet interfaces and struct implementations are redundant and should be merged.
This will cause even more breaking changes in case there are downstream toolset implementations, but I believe it's worth the trouble since the API will be even cleaner.

@manusa manusa added this to the 0.1.0 milestone Dec 11, 2025
@nader-ziada
Copy link
Collaborator

i'm good with this refactor, thanks @manusa

@nader-ziada nader-ziada merged commit 4f0ed3e into containers:main Dec 11, 2025
18 of 26 checks passed
@manusa manusa deleted the refactor/api branch December 12, 2025 08:49
@manusa manusa changed the title refactor(api)!: replace internal Kubernetes references with api packa… refactor(api)!: replace internal Kubernetes references with api package interfaces Dec 12, 2025
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