mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-12-01 17:44:30 +00:00
add validation test for RegisterWithTaints
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user