-
Notifications
You must be signed in to change notification settings - Fork 239
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
Removes cluster node status reporting from agent #2190
Removes cluster node status reporting from agent #2190
Conversation
baseTime = metav1.Now() | ||
ctx, cancel = context.WithCancel(context.TODO()) | ||
clusterClient.EXPECT().Patch(clusterNamespace, clusterName, types.MergePatchType, gomock.Any(), "status"). | ||
DoAndReturn(func(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result fleet.Cluster, err error) { |
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.
You declare the result
here but don't actually use it?
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.
indeed, changed.
984a8ae
to
0e45d69
Compare
return *cluster, nil | ||
}).AnyTimes() | ||
Ticker(ctx, agentNamespace, clusterNamespace, clusterName, time.Second*1, nodeClient, clusterClient) | ||
}) |
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: I'd always put newlines in between the blocks, but 🤷
}) | |
}) | |
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.
Sure, it's more readable that way. New lines added.
eb1e041
to
1a58ae8
Compare
1a58ae8
to
d4d298e
Compare
d4d298e
to
ff4ed76
Compare
Removes cluster node status reporting from agent and adds a basic unit test for the `clusterstatus Ticker` Refers to: rancher#1973 Signed-off-by: Xavi Garcia <xavi.garcia@suse.com>
ff4ed76
to
aa041a4
Compare
Removes cluster node status reporting from agent and adds a basic unit test for the
clusterstatus Ticker
Refers to: #1973