add validation test for RegisterWithTaints

This commit is contained in:
caozhiyuan
2021-12-08 10:35:06 +08:00
parent fbdd0d7b41
commit 1a59bcb142
2 changed files with 11 additions and 1 deletions

View File

@@ -133,7 +133,7 @@ func ValidateKubeletConfiguration(kc *kubeletconfig.KubeletConfiguration) error
allErrors = append(allErrors, fmt.Errorf("invalid taint: %v", nodeTaint))
}
if nodeTaint.TimeAdded != nil {
allErrors = append(allErrors, fmt.Errorf("taint TimeAdded is not nil"))
allErrors = append(allErrors, fmt.Errorf("invalid configuration: taint.TimeAdded is not nil"))
}
}