mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
variable 'controller' collides with imported package name
This commit is contained in:
parent
586fd3374f
commit
89a987bf40
@ -243,14 +243,14 @@ func (c ControllerContext) IsControllerEnabled(name string) bool {
|
|||||||
|
|
||||||
func IsControllerEnabled(name string, disabledByDefaultControllers sets.String, controllers ...string) bool {
|
func IsControllerEnabled(name string, disabledByDefaultControllers sets.String, controllers ...string) bool {
|
||||||
hasStar := false
|
hasStar := false
|
||||||
for _, controller := range controllers {
|
for _, ctrl := range controllers {
|
||||||
if controller == name {
|
if ctrl == name {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if controller == "-"+name {
|
if ctrl == "-"+name {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if controller == "*" {
|
if ctrl == "*" {
|
||||||
hasStar = true
|
hasStar = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user