Skip to content

Commit

Permalink
Merge pull request #63993 from appscode/fixadm-1.0
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue.

Don't panic is admission options is nil

Backport #63460

cc: @sttts @deads2k 

```release-note
nil admission options are now consistent with other nil options.
```
  • Loading branch information
Kubernetes Submit Queue authored May 24, 2018
2 parents 93fa67f + 7b79ebd commit ca8dea7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions staging/src/k8s.io/apiserver/pkg/server/options/admission.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ func NewAdmissionOptions() *AdmissionOptions {

// AddFlags adds flags related to admission for a specific APIServer to the specified FlagSet
func (a *AdmissionOptions) AddFlags(fs *pflag.FlagSet) {
if a == nil {
return
}

fs.StringSliceVar(&a.EnablePlugins, "enable-admission-plugins", a.EnablePlugins, ""+
"admission plugins that should be enabled in addition to default enabled ones. "+
"Comma-delimited list of admission plugins: "+strings.Join(a.Plugins.Registered(), ", ")+". "+
Expand Down

0 comments on commit ca8dea7

Please sign in to comment.