Skip to content

Commit 5ab1fc7

Browse files
committed
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 <[email protected]>
1 parent 8ad92e0 commit 5ab1fc7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hack/second-controller.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def parse_arguments():
134134
)
135135
for container in controller["spec"]["template"]["spec"]["containers"]:
136136
if container["name"] == "pac-controller":
137+
container["name"] = args.label + "-controller"
137138
if args.controller_image and args.controller_image != "ko":
138139
container["image"] = args.controller_image
139140
for env in container["env"]:

0 commit comments

Comments
 (0)