We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c25f5ee commit f0f319cCopy full SHA for f0f319c
test/e2e/node/node_lifecycle.go
@@ -53,15 +53,21 @@ var _ = SIGDescribe("Node Lifecycle", func() {
53
54
nodeClient := f.ClientSet.CoreV1().Nodes()
55
56
+ // Create a fake node with a ready condition but unschedulable, so it won't be selected by
57
+ // the scheduler and won't be deleted by the cloud controller manager when the test runs on
58
+ // a specific cloud provider.
59
fakeNode := v1.Node{
60
ObjectMeta: metav1.ObjectMeta{
61
Name: "e2e-fake-node-" + utilrand.String(5),
62
},
63
+ Spec: v1.NodeSpec{
64
+ Unschedulable: true,
65
+ },
66
Status: v1.NodeStatus{
67
Phase: v1.NodeRunning,
68
Conditions: []v1.NodeCondition{
69
{
- Status: v1.ConditionFalse,
70
+ Status: v1.ConditionTrue,
71
Message: "Set from e2e test",
72
Reason: "E2E",
73
Type: v1.NodeReady,
0 commit comments