File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ var (
154154 SetLogger = log .SetLogger
155155)
156156
157- // WebhookManagedBy returns a new webhook builder for the provided type T.
158- func WebhookManagedBy [T runtime.Object ](mgr manager.Manager , obj T ) * builder.WebhookBuilder [T ] {
157+ // NewWebhookManagedBy returns a new webhook builder for the provided type T.
158+ func NewWebhookManagedBy [T runtime.Object ](mgr manager.Manager , obj T ) * builder.WebhookBuilder [T ] {
159159 return builder .WebhookManagedBy (mgr , obj )
160160}
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ func main() {
6060 os .Exit (1 )
6161 }
6262
63- if err := ctrl .WebhookManagedBy (mgr , & corev1.Pod {}).
63+ if err := ctrl .NewWebhookManagedBy (mgr , & corev1.Pod {}).
6464 WithAdmissionDefaulter (& podAnnotator {}).
6565 WithAdmissionValidator (& podValidator {}).
6666 Complete (); err != nil {
You can’t perform that action at this time.
0 commit comments