Merge pull request #77306 from bjhaid/cleanup_controller_manager

Clean up controller-manager.
This commit is contained in:
Kubernetes Prow Robot
2019-05-09 21:43:57 -07:00
committed by GitHub

View File

@@ -103,9 +103,7 @@ func (o *GenericControllerManagerConfigurationOptions) Validate(allControllers [
if controller == "*" {
continue
}
if strings.HasPrefix(controller, "-") {
controller = controller[1:]
}
controller = strings.TrimPrefix(controller, "-")
if !allControllersSet.Has(controller) {
errs = append(errs, fmt.Errorf("%q is not in the list of known controllers", controller))
}