From a7fff597fac8c2c40afb37aa8e8f998ee1dfa6d2 Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Mon, 31 May 2021 14:25:35 +0200 Subject: [PATCH] feat: providing log upon CapsuleConfiguration change --- controllers/config/manager.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controllers/config/manager.go b/controllers/config/manager.go index e517f7f3..542a88cf 100644 --- a/controllers/config/manager.go +++ b/controllers/config/manager.go @@ -72,11 +72,15 @@ func (r *Manager) SetupWithManager(mgr ctrl.Manager, configurationName string) e } func (r *Manager) Reconcile(ctx context.Context, request reconcile.Request) (res reconcile.Result, err error) { + r.Log.Info("CapsuleConfiguration reconciliation started", "request.name", request.Name) + cfg := configuration.NewCapsuleConfiguration(r.Client, request.Name) // Validating the Capsule Configuration options if _, err = cfg.ProtectedNamespaceRegexp(); err != nil { panic(errors.Wrap(err, "Invalid configuration for protected Namespace regex")) } + r.Log.Info("CapsuleConfiguration reconciliation finished", "request.name", request.Name) + return }