File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -53,15 +53,21 @@ var _ = SIGDescribe("Node Lifecycle", func() {
53
53
54
54
nodeClient := f .ClientSet .CoreV1 ().Nodes ()
55
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.
56
59
fakeNode := v1.Node {
57
60
ObjectMeta : metav1.ObjectMeta {
58
61
Name : "e2e-fake-node-" + utilrand .String (5 ),
59
62
},
63
+ Spec : v1.NodeSpec {
64
+ Unschedulable : true ,
65
+ },
60
66
Status : v1.NodeStatus {
61
67
Phase : v1 .NodeRunning ,
62
68
Conditions : []v1.NodeCondition {
63
69
{
64
- Status : v1 .ConditionFalse ,
70
+ Status : v1 .ConditionTrue ,
65
71
Message : "Set from e2e test" ,
66
72
Reason : "E2E" ,
67
73
Type : v1 .NodeReady ,
You can’t perform that action at this time.
0 commit comments