From 1ef279f6b884a20b6cd95e6ec9ebd5c8039a7d8e Mon Sep 17 00:00:00 2001 From: Jonny Rimek Date: Wed, 21 Jan 2026 12:13:03 +0100 Subject: [PATCH] Refine metadata update check --- .../actions.github.com/autoscalinglistener_controller.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/controllers/actions.github.com/autoscalinglistener_controller.go b/controllers/actions.github.com/autoscalinglistener_controller.go index cec6bcf7..0291f9ef 100644 --- a/controllers/actions.github.com/autoscalinglistener_controller.go +++ b/controllers/actions.github.com/autoscalinglistener_controller.go @@ -445,8 +445,12 @@ func needsMetadataUpdate(current map[string]string, desired map[string]string) b return false } + if current == nil { + return true + } + for key, value := range desired { - if current == nil || current[key] != value { + if current[key] != value { return true } }