Skip to content

Commit b96cf4e

Browse files
Merge pull request #2129 from jmprusi/jmprusi/syncer-status-advancedScheduling-patch
🐛 Syncer AdvancedScheduling fixes: Avoid syncing down the experimental status annotation.
2 parents 1774bc6 + 977e0a6 commit b96cf4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/syncer/spec/spec_process.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ func (c *Controller) applyToDownstream(ctx context.Context, gvr schema.GroupVers
342342
// Strip cluster name annotation
343343
downstreamAnnotations := downstreamObj.GetAnnotations()
344344
delete(downstreamAnnotations, logicalcluster.AnnotationKey)
345+
//TODO(jmprusi): To be removed when switching to the syncer Virtual Workspace transformations.
346+
delete(downstreamAnnotations, workloadv1alpha1.InternalClusterStatusAnnotationPrefix+c.syncTargetKey)
345347
// If we're left with 0 annotations, nil out the map so it's not included in the patch
346348
if len(downstreamAnnotations) == 0 {
347349
downstreamAnnotations = nil

0 commit comments

Comments
 (0)