mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
* This allows a controller to use cloud provider managed RBAC when --use-service-account-credentials is set. * Create ControllerInitFuncConstructor to pass to init funcs to avoid future function signature growth. * Add comments for context around legacy naming of node controllers. * Add example for setting client names from cloud controller manager.
cloud-controller-manager/example
This directory provides an example of how to leverage CCM extension mechanism.
Purpose
Begin with 1.20, all cloud providers should not copy over or vendor in k8s.io/kubernetes/cmd/cloud-controller-manager. Inside this directory, an example is included to demonstrate how to leverage CCM extension mechanism to add a controller.
Please refer to k8s.io/cloud-provider/sample if you do not have the requirement of adding/deleting controllers in CCM.
Things you should NOT do
- Vendor in
k8s.io/cmd/cloud-controller-manager. - Directly modify anything under
k8s.io/cmd/cloud-controller-managerin this repo. - Make specific cloud provider changes here.