It is better to be done before the migration because (1) we need to generate test data for the CRD when it is still TF-based or DCL-based, and (2) the powertool should be ready for the kind whenever it is switched to be direct-based, so that users can have an option to clean up the outdated externally-managed fields.
We should add a unit test in presubmit to verify it.
Checklist
Describe the feature or resource
Similar to https://github.com/GoogleCloudPlatform/k8s-config-connector/pull/1978, any CRD that supports
state-into-spec: merge
should have a scenario test to changestate-into-spec
toabsent
and clear externally-managed fields before it is migrated to a direct controller.It is better to be done before the migration because (1) we need to generate test data for the CRD when it is still TF-based or DCL-based, and (2) the powertool should be ready for the kind whenever it is switched to be direct-based, so that users can have an option to clean up the outdated externally-managed fields.
We should add a unit test in presubmit to verify it.
Additional information
No response
Importance
No response