You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/sync/object_syncer.go
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ import (
22
22
"slices"
23
23
24
24
jsonpatch "github.com/evanphx/json-patch/v5"
25
+
"github.com/kcp-dev/logicalcluster/v3"
25
26
"go.uber.org/zap"
26
27
"k8c.io/reconciler/pkg/equality"
27
28
@@ -54,7 +55,8 @@ type objectSyncer struct {
54
55
55
56
typesyncSidestruct {
56
57
ctx context.Context
57
-
clusterNamestring
58
+
clusterName logicalcluster.Name
59
+
clusterPath logicalcluster.Path
58
60
client ctrlruntimeclient.Client
59
61
object*unstructured.Unstructured
60
62
}
@@ -104,7 +106,7 @@ func (s *objectSyncer) Sync(log *zap.SugaredLogger, source, dest syncSide) (requ
104
106
// do not try to update a destination object that is in deletion
105
107
// (this should only happen if a service admin manually deletes something on the service cluster)
106
108
ifdest.object.GetDeletionTimestamp() !=nil {
107
-
log.Debugw("Destination object is in deletion, skipping any further synchronization", "dest-object", newObjectKey(dest.object, dest.clusterName))
109
+
log.Debugw("Destination object is in deletion, skipping any further synchronization", "dest-object", newObjectKey(dest.object, dest.clusterName, logicalcluster.None))
108
110
returnfalse, nil
109
111
}
110
112
@@ -173,7 +175,7 @@ func (s *objectSyncer) syncObjectSpec(log *zap.SugaredLogger, source, dest syncS
0 commit comments