Support clusterctl move ExperimentalResourceMutators in CLI mode #11694
Labels
area/clusterctl
Issues or PRs related to clusterctl
kind/feature
Categorizes issue or PR as related to a new feature.
needs-priority
Indicates an issue lacks a `priority/foo` label and requires one.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What would you like to be added (User Story)?
As developer I'm successfully using
ExperimentalResourceMutators
functionality in clusterctl APIMoveOptions
and wrote a large number of custom mutators in our project. We are using for specific fields values fill during move, status transformation (storing), as well as for move procedure markers required for the our infrastructure providers.Now, as operator I would like to have the same functionality for the clusterctl CLI out-of-the-box. Now, we need to write custom CLI for this feature to extend clusterctl move resource mutators functions.
Detailed Description
Providing solution looks like:
--resource-mutator-plugin
(single or multiple values. need to discuss with community) flag for the move command in clusterctlcluster.ResourceMutatorFunc
which will serializeunstructured.Unstructured
to yaml, call plugin send serialized data into stdin, read stdout, deserialize and return it back.sigs.k8s.io/cluster-api/test/framework/clusterctl
package to call it like CLI instead of API.Anything else you would like to add?
/assign
Label(s) to be applied
/kind feature
The text was updated successfully, but these errors were encountered: