This commit is contained in:
ston1th 2020-11-01 01:34:38 +01:00
commit 6085bf40c2

View file

@ -116,12 +116,12 @@ func main() {
if err = (&approver.CSRReconciler{
Client: mgr.GetClient(),
Log: ctrl.Log.WithName("controllers").WithName("CSR"),
Log: ctrl.Log.WithName("approver"),
Scheme: mgr.GetScheme(),
PVEClient: pveClient,
CSRClient: typedcertificatesv1beta1.NewForConfigOrDie(rcfg),
}).SetupWithManager(mgr, controller.Options{MaxConcurrentReconciles: csrConcurrency}); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "CSR")
setupLog.Error(err, "unable to create controller", "controller", "approver")
os.Exit(1)
}
if err := mgr.AddReadyzCheck("ping", healthz.Ping); err != nil {