Adding registry authentication configs/mirrors throws error on console and adds broken values in YAML
Setup
- Rancher version: 2.7-head & 2.9-head
Describe the bug
When adding registry authentication configs on cluster's Edit Config page an error gets
To Reproduce
Start an RKE2 cluster creation process with any provider Go to Registries Tab and enable the checkbox Add a registry host Click on "Show Advanced" and add a registry authentication Save it and come back to the page
Screenshots
https://github.com/rancher/dashboard/assets/135728925/21f4d084-26ae-468a-b2b0-0930fafaf491
cc @gaktive
/backport v2.8.next1
For an e2e, one could use https://github.com/rancher/dashboard/pull/10898 as a basis
Coverage looks good to me. Tests on generated YAML is enough as unit testing.