From 5728d7dc34d76539a306697709e4f941cd0eeed5 Mon Sep 17 00:00:00 2001 From: Sylvain Hellegouarch Date: Fri, 19 Apr 2024 10:59:20 +0200 Subject: [PATCH] fix type for command Signed-off-by: Sylvain Hellegouarch --- CHANGELOG.md | 10 +++++++++- controller.py | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f9d096d..1fd60d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,15 @@ ## [Unreleased][] -[Unreleased]: https://github.com/chaostoolkit-incubator/kubernetes-crd/compare/0.11.0...HEAD +[Unreleased]: https://github.com/chaostoolkit-incubator/kubernetes-crd/compare/0.11.1...HEAD + +## [0.11.1][] - 2024-04-19 + +[0.11.1]: https://github.com/chaostoolkit-incubator/kubernetes-crd/compare/0.11.0...0.11.1 + +### Fixed + +* A container command is a list of string, not just a single string ## [0.11.0][] - 2024-04-19 diff --git a/controller.py b/controller.py index 75eafce..fb90c23 100644 --- a/controller.py +++ b/controller.py @@ -398,7 +398,7 @@ def set_chaos_cmd_path( for container in spec["containers"]: if container["name"] == "chaostoolkit": if "chaos" in container["command"][0]: - container["command"] = cmd_path + container["command"] = [cmd_path] def set_cron_job_name(cron_tpl: Dict[str, Any], name_suffix: str) -> str: