mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
Merge pull request #77306 from bjhaid/cleanup_controller_manager
Clean up controller-manager.
This commit is contained in:
commit
124926fba2
@ -103,9 +103,7 @@ func (o *GenericControllerManagerConfigurationOptions) Validate(allControllers [
|
|||||||
if controller == "*" {
|
if controller == "*" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if strings.HasPrefix(controller, "-") {
|
controller = strings.TrimPrefix(controller, "-")
|
||||||
controller = controller[1:]
|
|
||||||
}
|
|
||||||
if !allControllersSet.Has(controller) {
|
if !allControllersSet.Has(controller) {
|
||||||
errs = append(errs, fmt.Errorf("%q is not in the list of known controllers", controller))
|
errs = append(errs, fmt.Errorf("%q is not in the list of known controllers", controller))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user