Skip to content

Commit

Permalink
Define label for controller in python scnd-ctrl.py
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
chmouel committed Oct 18, 2024
1 parent 8ad92e0 commit 5ab1fc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hack/second-controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down

0 comments on commit 5ab1fc7

Please sign in to comment.