Kubernetes Blog
Follow
Introducing Feature Gates to Client-Go: Enhancing Flexibility and Control
Kubernetes components use feature gates to manage the rollout of new features.Client-go, a library used by Kubernetes components, now includes its own feature gating mechanism.This allows developers to control the adoption of client-go features on a per-process basis.Without client-go feature gates, each new feature managed feature availability differently.Client-go feature gates address this by enabling or disabling features in a standardized way.Early adopters can enable default-off features on a per-process basis using environment variables.Developers can customize the default feature gate overrides in a program.Kubernetes components integrate client-go feature gates with the existing --feature-gates flag.Client-go feature gates are logged, allowing users to inspect their state.The introduction of feature gates in client-go improves the safety and flexibility of rolling out new features.