@@ -33,6 +33,7 @@ import (
33
33
"k8s.io/client-go/tools/leaderelection/resourcelock"
34
34
"k8s.io/client-go/tools/record"
35
35
"k8s.io/utils/pointer"
36
+
36
37
"sigs.k8s.io/controller-runtime/pkg/cache"
37
38
"sigs.k8s.io/controller-runtime/pkg/client"
38
39
"sigs.k8s.io/controller-runtime/pkg/cluster"
@@ -281,12 +282,12 @@ type Options struct {
281
282
// Port is the port that the webhook server serves at.
282
283
// It is used to set webhook.Server.Port if WebhookServer is not set.
283
284
//
284
- // Deprecated: Use WebhookServer.Port instead.
285
+ // Deprecated: Use WebhookServer instead. A WebhookServer can be created via webhook.NewServer .
285
286
Port int
286
287
// Host is the hostname that the webhook server binds to.
287
288
// It is used to set webhook.Server.Host if WebhookServer is not set.
288
289
//
289
- // Deprecated: Use WebhookServer.Host instead.
290
+ // Deprecated: Use WebhookServer instead. A WebhookServer can be created via webhook.NewServer .
290
291
Host string
291
292
292
293
// CertDir is the directory that contains the server key and certificate.
@@ -295,12 +296,12 @@ type Options struct {
295
296
// must be named tls.key and tls.crt, respectively.
296
297
// It is used to set webhook.Server.CertDir if WebhookServer is not set.
297
298
//
298
- // Deprecated: Use WebhookServer.CertDir instead.
299
+ // Deprecated: Use WebhookServer instead. A WebhookServer can be created via webhook.NewServer .
299
300
CertDir string
300
301
301
302
// TLSOpts is used to allow configuring the TLS config used for the webhook server.
302
303
//
303
- // Deprecated: Use WebhookServer.TLSConfig instead.
304
+ // Deprecated: Use WebhookServer instead. A WebhookServer can be created via webhook.NewServer .
304
305
TLSOpts []func (* tls.Config )
305
306
306
307
// WebhookServer is an externally configured webhook.Server. By default,
0 commit comments