Skip to content

feat: deprecate autoscaler policies that were replaced by node templates#504

Merged
jozuenoon merged 6 commits intomasterfrom
deprecate-replaced-autoscaler-policies
Jun 20, 2025
Merged

feat: deprecate autoscaler policies that were replaced by node templates#504
jozuenoon merged 6 commits intomasterfrom
deprecate-replaced-autoscaler-policies

Conversation

@primoz-hrovat
Copy link
Copy Markdown
Contributor

@primoz-hrovat primoz-hrovat commented Jun 13, 2025

This PR deprecates fields from autoscaler_settings:

  1. headroom and headroom_spot - reference this FAQ section for a replacement functionality.
  2. node_constraints - this field was moved from version 5.x.x and migration was advised.
  3. custom_instances_enabled this field was moved from version 5.x.x and migration was advised.
  4. spot_instances this object have now equivalent configuration in default node template, migration was advised from version 5.x.x.

Additionally removed/moved deprecated fields in examples.

@jozuenoon jozuenoon marked this pull request as ready for review June 18, 2025 09:46
@jozuenoon jozuenoon requested a review from a team as a code owner June 18, 2025 09:46
@furkhat
Copy link
Copy Markdown
Contributor

furkhat commented Jun 20, 2025

Could you also check if modules are using deprecated fields? Our EKS module seems to use some https://github.com/castai/terraform-castai-eks-cluster/blob/8e4a239f889d908fa5fa9e2881a97e891953f43a/main.tf#L1049

Copy link
Copy Markdown
Contributor

@furkhat furkhat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use schema migrations so deprecated fields get migrated to node templates on provider upgrade?

@jozuenoon jozuenoon merged commit 31aa66e into master Jun 20, 2025
10 checks passed
@jozuenoon jozuenoon deleted the deprecate-replaced-autoscaler-policies branch June 20, 2025 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants