From 5ab1fc7a395e5fceea70d645fbebfefa5edcf1f6 Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Fri, 18 Oct 2024 09:13:24 +0200 Subject: [PATCH] Define label for controller in python scnd-ctrl.py This will let standout the controller name in the logs when watching multiple of them, instead of all mixed from the same name Signed-off-by: Chmouel Boudjnah --- hack/second-controller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hack/second-controller.py b/hack/second-controller.py index b6913412e..40a2af2fc 100755 --- a/hack/second-controller.py +++ b/hack/second-controller.py @@ -134,6 +134,7 @@ def parse_arguments(): ) for container in controller["spec"]["template"]["spec"]["containers"]: if container["name"] == "pac-controller": + container["name"] = args.label + "-controller" if args.controller_image and args.controller_image != "ko": container["image"] = args.controller_image for env in container["env"]: