Skip to content

Commit 283ff76

Browse files
authored
Merge pull request kubernetes#127449 from lengrongfu/fix/e2e-CPUManagerReconcilePeriod
fix e2e test CPUManagerReconcilePeriod field is not allowed 0
2 parents b1357bf + 0c753d1 commit 283ff76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e_node/kubelet_config_dir_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ clusterDNS:
101101
- 192.168.1.5
102102
- 192.168.1.8
103103
port: 8080
104-
cpuManagerReconcilePeriod: 0s
104+
cpuManagerReconcilePeriod: 1s
105105
systemReserved:
106106
memory: 2Gi
107107
authorization:
@@ -145,7 +145,7 @@ featureGates:
145145
}
146146
initialConfig.ClusterDNS = []string{"192.168.1.1", "192.168.1.5", "192.168.1.8"} // overridden by slice in second file.
147147
// This value was explicitly set in the drop-in, make sure it is retained
148-
initialConfig.CPUManagerReconcilePeriod = metav1.Duration{Duration: time.Duration(0)}
148+
initialConfig.CPUManagerReconcilePeriod = metav1.Duration{Duration: time.Second}
149149
// Meanwhile, this value was not explicitly set, but could have been overridden by a "default" of 0 for the type.
150150
// Ensure the true default persists.
151151
initialConfig.CPUCFSQuotaPeriod = metav1.Duration{Duration: time.Duration(100000000)}

0 commit comments

Comments
 (0)