rancher / terraform-provider-rancher2

Terraform Rancher2 provider
https://www.terraform.io/docs/providers/rancher2/
Mozilla Public License 2.0
253 stars 218 forks source link

[RFE] ignore quantity if cluster-autoscaler is installed #1257

Open nickvth opened 8 months ago

nickvth commented 8 months ago

Is your feature request related to a problem? Please describe.

We are using dynamic block for machine_pools so we can't ignore changes on quantity see https://discuss.hashicorp.com/t/use-lifecycle-ignore-changes-on-dynamic-block/48483

Describe the solution you'd like

We like to have a setting to ignore quantity if we use cluster-autoscaler. For example ignore_quantity = true in machine_pools block, for each machine pool, so we can only ignore when worker_role = true ignore only when machine_pool already exists.

Describe alternatives you've considered

There is no alternative.

Additional context

nickvth commented 2 months ago

Alternatively, consider making the quantity optional. If not specified, it would automatically default to ignore instead of now default 1 @a-blender @kkaempf any plans to support this for cluster-autoscaler?

dirkdaems commented 2 months ago

We also run into this issue. Looks like a trivial change?