This document describes how to generate and maintain typed Kubernetes clients for the kubeflex CRDs.
kubeflex uses the standard Kubernetes code-generator tools to generate:
k8s.io/code-generator (automatically fetched during generation)To regenerate all typed clients, informers, and listers:
make generate-clients
This runs hack/update-codegen.sh, which invokes the Kubernetes code-generator tools.
To verify that generated code is up-to-date:
make verify-codegen
This is useful in CI pipelines to ensure generated code is committed after API changes.
Regenerate typed clients when API types in api/v1alpha1/ are modified.
Ensure you have the correct version of Go installed and that k8s.io/code-generator is accessible.
Check that:
+k8s:deepcopy-gen=package, +groupName=..., +genclient)