Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#175 from mengqiy/fix_nil_pointer
Browse files Browse the repository at this point in the history
fix a nil pointer issue when defaulting
  • Loading branch information
k8s-ci-robot committed Oct 18, 2018
2 parents 268638f + 3f02d77 commit 1fe24e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/webhook/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ func (s *Server) setServerDefault() {

// setBootstrappingDefault does defaulting for the Server bootstrapping.
func (s *Server) setBootstrappingDefault() {
if s.BootstrapOptions == nil {
s.BootstrapOptions = &BootstrapOptions{}
}
if len(s.MutatingWebhookConfigName) == 0 {
s.MutatingWebhookConfigName = "mutating-webhook-configuration"
}
Expand Down

0 comments on commit 1fe24e5

Please sign in to comment.