@@ -112,7 +112,7 @@ func NewResourceSyncer(
112112// case, the caller should re-fetch the remote object and call Process() again (most likely in the
113113// next reconciliation). Only when (false, nil) is returned is the entire process finished.
114114func (s * ResourceSyncer ) Process (ctx Context , remoteObj * unstructured.Unstructured ) (requeue bool , err error ) {
115- log := s .log .With ("source-object" , newObjectKey (remoteObj , ctx .clusterName , ctx .clusterPath ))
115+ log := s .log .With ("source-object" , newObjectKey (remoteObj , ctx .clusterName , ctx .workspacePath ))
116116
117117 // find the local equivalent object in the local service cluster
118118 localObj , err := s .findLocalObject (ctx , remoteObj )
@@ -126,11 +126,11 @@ func (s *ResourceSyncer) Process(ctx Context, remoteObj *unstructured.Unstructur
126126 // Prepare object sync sides.
127127
128128 sourceSide := syncSide {
129- ctx : ctx .remote ,
130- clusterName : ctx .clusterName ,
131- clusterPath : ctx .clusterPath ,
132- client : s .remoteClient ,
133- object : remoteObj ,
129+ ctx : ctx .remote ,
130+ clusterName : ctx .clusterName ,
131+ workspacePath : ctx .workspacePath ,
132+ client : s .remoteClient ,
133+ object : remoteObj ,
134134 }
135135
136136 destSide := syncSide {
@@ -182,7 +182,7 @@ func (s *ResourceSyncer) Process(ctx Context, remoteObj *unstructured.Unstructur
182182}
183183
184184func (s * ResourceSyncer ) findLocalObject (ctx Context , remoteObj * unstructured.Unstructured ) (* unstructured.Unstructured , error ) {
185- localSelector := labels .SelectorFromSet (newObjectKey (remoteObj , ctx .clusterName , ctx .clusterPath ).Labels ())
185+ localSelector := labels .SelectorFromSet (newObjectKey (remoteObj , ctx .clusterName , ctx .workspacePath ).Labels ())
186186
187187 localObjects := & unstructured.UnstructuredList {}
188188 localObjects .SetAPIVersion (s .destDummy .GetAPIVersion ())
0 commit comments