We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 661c21e commit d6418d8Copy full SHA for d6418d8
cmd/operator/app/command.go
@@ -99,7 +99,10 @@ func NewOperatorCommand() *cobra.Command {
99
CertDir: o.AdmissionWebhookCertDir,
100
}
101
webhookServer := webhook.NewServer(webhookServerOptions)
102
- mgr.Add(webhookServer)
+ if err := mgr.Add(webhookServer); err != nil {
103
+ setupLog.Error(err, "unable to add admission webhook server to manager")
104
+ os.Exit(1)
105
+ }
106
107
if err != nil {
108
setupLog.Error(err, "unable to start manager")
0 commit comments