Skip to content

Commit

Permalink
Merge pull request #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 authored Oct 18, 2018
2 parents 0d3ceb8 + 4926a68 commit 6eabf5c
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 6eabf5c

Please sign in to comment.