Migrate Clientset To Client

Migrates Kubernetes typed clientset (e.g. client-go kubernetes.Interface or custom clientsets) in test code to the controller-runtime client.Client interface. Use when refactoring test files that call K8sClient.CoreV1().Pods().Get/Create/UpdateStatus typed APIs, replacing them with fake.NewClientBuilder + client.Client.Get/Create/Status().Update patterns. Triggered when the user mentions "replace clientset", "migrate client", or "use controller-runtime client". Use when this capability is needed.

tomevault-io Updated

File contents

tomevault-io/skills-registry/tree/main/openkruise--agents--agents commit dd976b4a59

Frequently asked questions

npx skillmds@latest add tomevault-io/migrate-clientset-to-client