mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 20:50:24 +00:00
kubeadm: add a flag to RunInitNodeChecks to indicate sec. control-plane
Add an extra flag isSecondaryControlPlane to RunInitNodeChecks which can be used to indicate that the node we are checking is a secondary control-plane. In such a case we skip some tests that are already covered by RunJoinNodeChecks and RunOptionalJoinNodeChecks.
This commit is contained in:
@@ -232,7 +232,7 @@ func TestRunInitNodeChecks(t *testing.T) {
|
||||
}
|
||||
for _, rt := range tests {
|
||||
// TODO: Make RunInitNodeChecks accept a ClusterConfiguration object instead of InitConfiguration
|
||||
actual := RunInitNodeChecks(exec.New(), rt.cfg, sets.NewString())
|
||||
actual := RunInitNodeChecks(exec.New(), rt.cfg, sets.NewString(), false)
|
||||
if (actual == nil) != rt.expected {
|
||||
t.Errorf(
|
||||
"failed RunInitNodeChecks:\n\texpected: %t\n\t actual: %t\n\t error: %v",
|
||||
|
Reference in New Issue
Block a user