kindcontainer
kindcontainer copied to clipboard
Migrate from deprecated DefaultKubernetesClient to KubernetesClientBuilder
Summary
Migrates all test code from the deprecated DefaultKubernetesClient constructor to the new KubernetesClientBuilder pattern recommended by fabric8 kubernetes-client.
Changes
Pattern Migration:
// Before (deprecated)
new DefaultKubernetesClient(config)
// After
new KubernetesClientBuilder().withConfig(config).build()
Additional Changes:
- Updated imports from
DefaultKubernetesClienttoKubernetesClient/KubernetesClientBuilder - Changed method signatures to use
KubernetesClientinterface instead of concrete class - Ensures future compatibility with fabric8 kubernetes-client updates
Testing
All existing tests should continue to pass without modification, as this is a drop-in replacement with identical behavior.
🤖 Generated with Claude Code