Allow adding extra rules to the Role / ClusterRole template of the Cluster AutoScaler Helm chart #7680
Description
Which component are you using?:
/area cluster-autoscaler
Is your feature request designed to solve a problem? If so describe the problem this feature should solve.:
I am using ClusterAPI + Cluster AutoScaler, and would like to use the opt-in support for scaling from zero
provided by the AWS Infrastructure Provider (can be any other Infrastructure Provider as well, like : Hetzner / GCP / Azure).
This requires me to add the Infrastructure Machine template types to the Role / ClusterRole associated with the Cluster AutoScaler deployment (refer here).
The Cluster AutoScaler Helm chart doesn't allow me to add extra rules to the Role / ClusterRole.
Describe the solution you'd like.:
I would like the Helm chart to have some parameter, using which I can add whatever additional rules to the Role / ClusterRole
Describe any alternative solutions you've considered.:
If you don't agree with the above solution, then we can have specific rules for each Infrastructure Provider hardcoded in the Role / ClusterRole template. I can bring the extra rules for an Infrastructure Provider into effect using some parameter.
Additional context.:
NA