I noticed that the AddOnTemplateSpec.AgentSpec supports the entire workv1.ManifestWorkSpec, including DeleteOption, but the only field that is propagated to the ManifestWork is Manifests (i believe it's this code https://github.com/open-cluster-management-io/addon-framework/blob/main/pkg/addonmanager/controllers/agentdeploy/utils.go#L96). Was there a reason behind this decision?
We have a usecase in fleetconfig-controller where we would like to skip garbage collection of 1 addon's resources when a ManagedCluster is deleted, but there currently doesnt seem to be a way to do this when using an AddOnTemplate.
Thoughts on supporting setting all of the supported fields of AddOnTemplateSpec.AgentSpec when creating the AddOns ManifestWork? Happy to work on this, just looking to get an idea for why it was omitted in the first place 🙂