Open mantis-toboggan-md opened 3 days ago
I see this with 2.9-head code as well so it does not appear to be a vue3 related regression
I was concerned this might have been due to the recent split out of config to individual tabs but big is in 2.9.0. It may be more noticeable now though given the user may switch between tabs more.
This blocks #12323 at least so this should be looked at soon. cc @nwmac
Setup
Describe the bug It seems that users are unable to remove default values from rke2 addon configs. When the user switches away from the addon tab, default values are re-added. Some are re-added with a different value than they were initialized with, eg removing fields with empty string defaults results in them being re-added with
null
. Completely new fields are preserved.Saving then editing a cluster also causes the ui to re-introduce default fields. If a user were to create a cluster with modified flannel configuration, edit it, view the flannel tab, and save, their configuration would be altered without them having explicitly done so.
To Reproduce 1 Navigate to the cluster manager cluster list, click create, ensure the rke toggle is set to RKE2/k3s, and select 'generic'
Result The removed arg is present again when viewing the form
Expected Result User values are preserved
ALTERNATIVELY, after step 4
rkeConfig.chartValues.rke-flannel.flannel.args
has only one item, as expected (you removed the other)Screenshots
https://github.com/user-attachments/assets/1f42cd98-6911-401a-9750-ce00edf061d1