Skip to content

Updating values forces create new resources  #85

@sshah90

Description

@sshah90

Hello, This is a very easy module to work with but after deploying AKS cluster but when I try to apply some changes/updates it creates a new cluster.

After debugging I figure out that there are some values that are by default set up as "null" which causing this re-creation.

Check Below screenshots from my plan

Screen Shot 2021-01-06 at 1 01 43 PM

As you can see node_taints (this var needs to be added in the module), agents_availability_zones should be [] but as its default value is null so if a user doesn't provide it so resource recreate aks.

If we don't set auto_scaling for the default node pool then max and min pod should be 0 not null and the same goes with network_policy as well.

Please update/add the following variable's default values.

  • network_policy = "azure"
  • agents_availability_zones = []
  • agents_max_count = 0 (also change 0 here)
  • agents_min_count = 0
  • node_taints= [] (add new var in default_node_pool block)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions