-
Notifications
You must be signed in to change notification settings - Fork 391
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 vw: add API definition logging #2780
Conversation
Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
Fix bug in IndexSyncTargetsByExports where it was trying to fall back to the SyncTarget's path if a reference to an APIExport had an empty path, but instead of checking the path, it was accidentally checking the name. Also clean up index-related code. Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
4b01d1b
to
993f42b
Compare
return []string{client.ToClusterAwareKey(clusterName.Path(), reconcilerapiexport.TemporaryComputeServiceExportName)}, nil | ||
} | ||
|
||
keys := make([]string, 0, len(synctarget.Spec.SupportedAPIExports)) | ||
for _, export := range synctarget.Spec.SupportedAPIExports { | ||
if len(export.Export) == 0 { |
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.
FYI @davidfestal @sttts I'm pretty sure this is a bug, right?
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.
looks like, yes
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.
There is a chance this is the root cause of #2762
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.
I agree it seems a bug that might be related to the mentioned issue.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: davidfestal The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Trying to figure out kcp-dev/contrib-tmc#53