diff --git a/cmd/clusterctl/client/cluster/crd_migration.go b/cmd/clusterctl/client/cluster/crd_migration.go index cd770bd79620..51892151a3bf 100644 --- a/cmd/clusterctl/client/cluster/crd_migration.go +++ b/cmd/clusterctl/client/cluster/crd_migration.go @@ -42,6 +42,11 @@ type crdMigrator struct { Client client.Client } +// NewCRDMigrator public function to create a new CRD migrator. +func NewCRDMigrator(client client.Client) *crdMigrator { //nolint:revive + return newCRDMigrator(client) +} + // newCRDMigrator creates a new CRD migrator. func newCRDMigrator(client client.Client) *crdMigrator { return &crdMigrator{