Skip to content

Commit

Permalink
nit: remove print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaansehgal99 committed Feb 28, 2024
1 parent c0673d0 commit 806a2dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/controllers/workspace_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func (c *WorkspaceReconciler) getAllQualifiedNodes(ctx context.Context, wObj *ka
if err != nil {
return nil, err
}
fmt.Println(nodeList.Items)

if len(nodeList.Items) == 0 {
klog.InfoS("no current nodes match the workspace resource spec", "workspace", klog.KObj(wObj))
return nil, nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/workspace_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ func TestGetAllQualifiedNodes(t *testing.T) {
Labels: map[string]string{
corev1.LabelInstanceTypeStable: "Standard_NC12s_v3",
},
DeletionTimestamp: &v1.Time{Time: time.Now()}, // This sets the current time as the deletion timestamp
DeletionTimestamp: &v1.Time{Time: time.Now()},
},
}
nodeList.Items = append(nodeList.Items, deletedNode)
Expand Down

0 comments on commit 806a2dd

Please sign in to comment.