kindcontainer icon indicating copy to clipboard operation
kindcontainer copied to clipboard

Migrate from deprecated DefaultKubernetesClient to KubernetesClientBuilder

Open dajudge opened this issue 1 month ago • 0 comments

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 DefaultKubernetesClient to KubernetesClient/KubernetesClientBuilder
  • Changed method signatures to use KubernetesClient interface 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

dajudge avatar Dec 12 '25 19:12 dajudge