Skip to content

Conversation

@manusa
Copy link
Member

@manusa manusa commented Dec 12, 2025

Follows up on #578
Second phase of #577

After these changes the only thing left will be to clean up the api.KubernetesClient interface to not expose the core methods (ResourcesList, ResourcesGet, NamespacesList, etc.)
This will leave a very clean api.KubernetesClient interface powerful enough to implement any kind of toolset.


The AccessControlClientset was an unnecessary layer of indirection between the KubernetesClient interface and the Kubernetes implementation. This change merges the AccessControlClientset directly into the Kubernetes struct, simplifying the architecture and reducing complexity.

  • Merge KubernetesClientSet interface into KubernetesClient
  • Move all AccessControlClientset methods to Kubernetes struct
  • Delete accesscontrol.go and accesscontrol_client_set.go
  • Rename NewAccessControlClientset to NewKubernetes
  • Update all callers to use Kubernetes directly

BREAKING CHANGE: AccessControlClientset() method removed from KubernetesClient interface. Callers should use the KubernetesClient methods directly.

@manusa manusa added this to the 0.1.0 milestone Dec 12, 2025
@manusa manusa changed the title refactor(kubernetes)!: consolidate AccessControlClientset into Kubernetes struct refactor(api)!: consolidate AccessControlClientset into Kubernetes struct Dec 12, 2025
@manusa manusa force-pushed the refactor/kubernetes branch from 42b4c73 to 62c8efb Compare December 12, 2025 12:19
…ruct

The AccessControlClientset was an unnecessary layer of indirection
between the KubernetesClient interface and the Kubernetes implementation.
This change merges the AccessControlClientset directly into the Kubernetes
struct, simplifying the architecture and reducing complexity.

- Merge KubernetesClientSet interface into KubernetesClient
- Move all AccessControlClientset methods to Kubernetes struct
- Delete accesscontrol.go and accesscontrol_client_set.go
- Rename NewAccessControlClientset to NewKubernetes
- Update all callers to use Kubernetes directly

BREAKING CHANGE: AccessControlClientset() method removed from KubernetesClient
interface. Callers should use the KubernetesClient methods directly.

Signed-off-by: Marc Nuri <[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.

1 participant