mirror of
https://github.com/mariadb-operator/mariadb-operator.git
synced 2025-07-31 21:08:45 +00:00
Migrate Connection webhook to controller-runtime 0.20.3
This commit is contained in:
@ -96,7 +96,7 @@ var webhookCmd = &cobra.Command{
|
||||
setupLog.Error(err, "Unable to create webhook", "webhook", "Database")
|
||||
os.Exit(1)
|
||||
}
|
||||
if err = (&mariadbv1alpha1.Connection{}).SetupWebhookWithManager(mgr); err != nil {
|
||||
if err = webhookv1alpha1.SetupConnectionWebhookWithManager(mgr); err != nil {
|
||||
setupLog.Error(err, "Unable to create webhook", "webhook", "Connection")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
Reference in New Issue
Block a user