mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
Merge pull request #43277 from StudyNick/zte-20170315
Automatic merge from submit-queue (batch tested with PRs 44447, 44456, 43277, 41779, 43942) variable 'controller' collides with imported package name variable 'controller' collides with imported package name, 'controller' modify 'ctrl'
This commit is contained in:
commit
d32668b0be
@ -243,14 +243,14 @@ func (c ControllerContext) IsControllerEnabled(name string) bool {
|
||||
|
||||
func IsControllerEnabled(name string, disabledByDefaultControllers sets.String, controllers ...string) bool {
|
||||
hasStar := false
|
||||
for _, controller := range controllers {
|
||||
if controller == name {
|
||||
for _, ctrl := range controllers {
|
||||
if ctrl == name {
|
||||
return true
|
||||
}
|
||||
if controller == "-"+name {
|
||||
if ctrl == "-"+name {
|
||||
return false
|
||||
}
|
||||
if controller == "*" {
|
||||
if ctrl == "*" {
|
||||
hasStar = true
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user