Unverified Commit ca8dea7f authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #63993 from appscode/fixadm-1.0

Automatic merge from submit-queue. Don't panic is admission options is nil Backport https://github.com/kubernetes/kubernetes/pull/63460 cc: @sttts @deads2k ```release-note nil admission options are now consistent with other nil options. ```
parents 93fa67f1 7b79ebdc
......@@ -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(), ", ")+". "+
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment