Skip to content

Commit 09a0f58

Browse files
authored
Merge pull request #78 from kcp-dev/mutation-refactoring
Refactor mutation handling
2 parents 72eb43f + b4bf132 commit 09a0f58

File tree

17 files changed

+760
-452
lines changed

17 files changed

+760
-452
lines changed

internal/controller/sync/controller.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ func Create(
103103
remoteDummy.SetGroupVersionKind(remoteGVK)
104104

105105
// create the syncer that holds the meat&potatoes of the synchronization logic
106-
mutator := mutation.NewMutator(pubRes.Spec.Mutation)
107-
syncer, err := sync.NewResourceSyncer(log, localManager.GetClient(), virtualWorkspaceCluster.GetClient(), pubRes, localCRD, mutator, stateNamespace, agentName)
106+
syncer, err := sync.NewResourceSyncer(log, localManager.GetClient(), virtualWorkspaceCluster.GetClient(), pubRes, localCRD, mutation.NewMutator, stateNamespace, agentName)
108107
if err != nil {
109108
return nil, fmt.Errorf("failed to create syncer: %w", err)
110109
}

internal/mutation/mutation.go

Lines changed: 0 additions & 154 deletions
This file was deleted.

internal/mutation/mutation_test.go

Lines changed: 0 additions & 216 deletions
This file was deleted.

0 commit comments

Comments
 (0)