Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cmd/compute-domain-daemon/computedomain.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,8 @@ func (m *ComputeDomainManager) removeNodeFromComputeDomain(ctx context.Context)
// Update status and (upon success) store the latest version of the object
// (as returned by the API server) in the mutation cache.
newCD.Status.Nodes = updatedNodes
if _, err := m.config.clientsets.Nvidia.ResourceV1beta1().ComputeDomains(newCD.Namespace).UpdateStatus(ctx, newCD, metav1.UpdateOptions{}); err != nil {
newCD, err = m.config.clientsets.Nvidia.ResourceV1beta1().ComputeDomains(newCD.Namespace).UpdateStatus(ctx, newCD, metav1.UpdateOptions{})
if err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Connecting dots: we noticed this before; that's the only unresolved comment on #651:

#651 (comment)

return fmt.Errorf("error removing node from ComputeDomain status: %w", err)
}
m.mutationCache.Mutation(newCD)
Expand Down