While updating agentPools need to check for only fields which are mutable. #1536
Labels
area/managedclusters
Issues related to managed AKS clusters created through the CAPZ ManagedCluster Type
kind/bug
Categorizes issue or PR as related to a bug.
/kind bug
/area managedclusters
What steps did you take and what happened:
[A clear and concise description of what the bug is.]
When an update is triggered for agentpools the agentpool service compares the exiting agentPool and the updated agentPool
before it actually makes a CreateOrUpdate api call.
The current logic checks for the all the fields while comparison, most of the fields are immutable and should be avoided.
The fields for which AKS supports mutating are
What did you expect to happen:
The right way to implement it would be:
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
kubectl version
):/etc/os-release
):The text was updated successfully, but these errors were encountered: