Support for SqlJobs

This commit is contained in:
Martin Montes
2023-03-04 21:50:17 +01:00
committed by Martín Montes
parent ae8e3bfb1f
commit 4ef5b5aadc
56 changed files with 2271 additions and 170 deletions

View File

@ -85,6 +85,10 @@ var webhookCmd = &cobra.Command{
setupLog.Error(err, "unable to create webhook", "webhook", "Connection")
os.Exit(1)
}
if err = (&mariadbv1alpha1.SqlJob{}).SetupWebhookWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create webhook", "webhook", "SqlJob")
os.Exit(1)
}
if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {
setupLog.Error(err, "unable to set up health check")