We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1a16279 + a591a83 commit 124926fCopy full SHA for 124926f
cmd/controller-manager/app/options/generic.go
@@ -103,9 +103,7 @@ func (o *GenericControllerManagerConfigurationOptions) Validate(allControllers [
103
if controller == "*" {
104
continue
105
}
106
- if strings.HasPrefix(controller, "-") {
107
- controller = controller[1:]
108
- }
+ controller = strings.TrimPrefix(controller, "-")
109
if !allControllersSet.Has(controller) {
110
errs = append(errs, fmt.Errorf("%q is not in the list of known controllers", controller))
111
0 commit comments