mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
fix: logger panic (#4793)
* fix: logger panic Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com> * makefile Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com> Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
This commit is contained in:
parent
7e0884ca36
commit
1f41c2b84a
2 changed files with 2 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -693,7 +693,7 @@ kind-deploy-kyverno: kind-load-all ## Build images, load them in kind cluster an
|
|||
--set image.tag=$(IMAGE_TAG_DEV) \
|
||||
--set initImage.repository=$(LOCAL_KYVERNOPRE_IMAGE) \
|
||||
--set initImage.tag=$(IMAGE_TAG_DEV) \
|
||||
--set initContainer.extraArgs={--loggingFormat=text}
|
||||
--set initContainer.extraArgs={--loggingFormat=text} \
|
||||
--set "extraArgs={--autogenInternals=true,--loggingFormat=text}"
|
||||
@echo Restart kyverno pods... >&2
|
||||
@kubectl rollout restart deployment -n kyverno kyverno
|
||||
|
|
|
@ -86,6 +86,6 @@ func reconcile(ctx context.Context, logger logr.Logger, obj interface{}, r recon
|
|||
}
|
||||
logger = logger.WithValues("key", k, "namespace", ns, "name", n)
|
||||
logger.Info("reconciling ...")
|
||||
defer logger.Info("done", time.Since(start))
|
||||
defer logger.Info("done", "duration", time.Since(start))
|
||||
return r(ctx, logger, k, ns, n)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue