Migrate Connection webhook to controller-runtime 0.20.3

This commit is contained in:
mmontes11
2025-03-22 20:14:30 +01:00
committed by Martin Montes
parent 34646f1c36
commit 19ec86d6f1
6 changed files with 226 additions and 186 deletions

View File

@ -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)
}