Problem: When the cluster is provisioned using a clusterTemplate, new values for the private registry are not applied. It turns out that the backend does not handle the bracket notation properly when processing those new values. The key for registry-related questions contains an index, such as [0], because the data type of the field is a list of PrivateRegistry.
Problem:
When the cluster is provisioned using a clusterTemplate, new values for the private registry are not applied.
It turns out that the backend does not handle the bracket notation properly when processing those new values. The key for registry-related questions contains an index, such as [0], because the data type of the field is a list of PrivateRegistry.

Fix:
When a registry-related question is detected, generate a list of PrivateRegistry based on the index value and set it to the correct position in the Cluster object.

GH Issue: https://github.com/rancher/rancher/issues/27166
Related UI issue: https://github.com/rancher/dashboard/issues/3940

rancher/rancher,rancher/rancher,rancher/rancher,rancher/rancher