From 783cd4fca57b3c16d7f70285a1305c43bd6d022e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20St=C3=A4bler?= Date: Tue, 21 Apr 2026 17:27:43 +0200 Subject: [PATCH] Add middleware version to logs (#76) (cherry picked from commit 7f15f15074316058c0558eacb973e14cbcbb4559) --- internal/controller/function_controller.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/controller/function_controller.go b/internal/controller/function_controller.go index dd68bdc..cfd9bf8 100644 --- a/internal/controller/function_controller.go +++ b/internal/controller/function_controller.go @@ -248,8 +248,8 @@ func (r *FunctionReconciler) handleMiddlewareUpdate(ctx context.Context, functio function.MarkMiddlewareNotUpToDateIntentionally("SkipMiddlewareUpdate", "Skipping middleware update as update is disabled (source: %s)", source) // Don't return - continue to update deployment status } else { - logger.Info("Function is not on latest middleware and middleware update is enabled. Will redeploy") - function.MarkMiddlewareNotUpToDate("MiddlewareOutdated", "Middleware is outdated, redeploying") + logger.Info(fmt.Sprintf("Function is not on latest middleware (%q vs %q) and middleware update is enabled. Will redeploy", latestMiddleware, functionDescribe.Middleware.Version)) + function.MarkMiddlewareNotUpToDate("MiddlewareOutdated", "Middleware is outdated (%s available), redeploying...", latestMiddleware) function.Status.Middleware.PendingRebuild = true @@ -271,7 +271,7 @@ func (r *FunctionReconciler) handleMiddlewareUpdate(ctx context.Context, functio function.Status.Middleware.Available = nil // if function is on latest, we don't need to show this field } } else { - logger.Info("Function is deployed with latest middleware. No need to redeploy") + logger.Info(fmt.Sprintf("Function is deployed with latest middleware (%s). No need to redeploy", functionDescribe.Middleware.Version)) function.MarkMiddlewareUpToDate() function.Status.Middleware.Available = nil // if function is on latest, we don't need to show this field }