Skip to content

Commit

Permalink
vpa: admission-controller: add logs for failure to start webhook server
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth Yadav committed Feb 23, 2022
1 parent 59f2eaa commit 397b9f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vertical-pod-autoscaler/pkg/admission-controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,9 @@ func main() {
// Start status updates after the webhook is initialized.
statusUpdater.Run(stopCh)
}()
server.ListenAndServeTLS("", "")

err = server.ListenAndServeTLS("", "")
if err != nil {
klog.Fatalf("HTTPS Error: %s", err)
}
}

0 comments on commit 397b9f2

Please sign in to comment.