-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🌱 Syncer: Use the features now provided by the Syncer VW, based on transformations #2321
🌱 Syncer: Use the features now provided by the Syncer VW, based on transformations #2321
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
... Let's use the features now provided by the Syncer VW based on transformations, instead of in-syncer implementation. Signed-off-by: David Festal
1a32070
to
473dcd3
Compare
/lgtm |
/assign @sttts |
@davidfestal: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@@ -33,8 +33,8 @@ | |||
/pkg/admission/webhook/generic_webhook.go:142:5: function "Errorf" should not be used, convert to contextual logging | |||
/pkg/admission/webhook/generic_webhook.go:172:4: function "Errorf" should not be used, convert to contextual logging | |||
/pkg/authorization/delegated/authorizer.go:45:3: function "Errorf" should not be used, convert to contextual logging | |||
/pkg/cliplugins/workload/plugin/sync.go:591:4: function "Infof" should not be used, convert to contextual logging | |||
/pkg/cliplugins/workload/plugin/sync.go:591:4: function "V" should not be used, convert to contextual logging | |||
/pkg/cliplugins/workload/plugin/sync.go:592:4: function "Infof" should not be used, convert to contextual logging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just use contextual logging?
@@ -73,31 +72,26 @@ func EnsureUpstreamFinalizerRemoved(ctx context.Context, gvr schema.GroupVersion | |||
} | |||
upstreamObj.SetFinalizers(desiredFinalizers) | |||
|
|||
// TODO(jmprusi): This code block will be handled by the syncer virtual workspace, so we can remove it once | |||
// the virtual workspace syncer is integrated | |||
// TODO(davidfestal): The following code block should be removed as soon as the Advanced Scheduling feature is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe you all have no problem remembering all of your TODOs but I would suggest making this code panic or not compile or something to make it easier to find what you need to change when scheduling is removed :)
} else if err == nil { | ||
logger.V(2).Info("Updated upstream resource to remove the syncer finalizer") | ||
} else { | ||
logger.V(3).Info("Didn't update upstream resource to remove the syncer finalizer, since the upstream resource doesn't exist anymore") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
err != nil
here, we likely want to log it, right?
@davidfestal do you plan to proceed with this? |
/milestone clear |
/hold until the |
With Syncer/TMC having been removed, I think we can close this PR. |
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Summary
Syncer: Fix TODOs related to transformations: let's use the features now provided by the Syncer VW, based on transformations, instead of in-syncer implementation.
Related issue(s)
kcp-dev/contrib-tmc#103