Skip to content

Commit

Permalink
Merge pull request kubernetes#60838 from CaoShuFeng/amdission_control…
Browse files Browse the repository at this point in the history
…ler_glog

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

log enabled admission controller in order

After switching to --enable-admission-plugins/--disable-admission-plugins, some admission controller may start silently. And these admission controllers may modify or forbid objects. This pull request does a lot of help for admin to trouble shooting.

/assign @hzxuzhonghu @sttts 

**Release note**:
```release-note
NONE
```
  • Loading branch information
Kubernetes Submit Queue committed Mar 7, 2018
2 parents 07c04c2 + 4c6db25 commit bad8e0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions staging/src/k8s.io/apiserver/pkg/admission/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"io/ioutil"
"reflect"
"sort"
"strings"
"sync"

"github.com/golang/glog"
Expand Down Expand Up @@ -144,6 +145,9 @@ func (ps *Plugins) NewFromPlugins(pluginNames []string, configProvider ConfigPro
}
}
}
if len(pluginNames) != 0 {
glog.Infof("Loaded %d admission controller(s) successfully in the following order: %s.", len(pluginNames), strings.Join(pluginNames, ","))
}
return chainAdmissionHandler(handlers), nil
}

Expand Down

0 comments on commit bad8e0d

Please sign in to comment.