diff --git a/controllers/chaosengine_controller.go b/controllers/chaosengine_controller.go index f07f7e08..f176f9f7 100644 --- a/controllers/chaosengine_controller.go +++ b/controllers/chaosengine_controller.go @@ -658,6 +658,12 @@ func getTargets(engine *chaosTypes.EngineInfo) string { return strings.Join(targets, ";") } + if engine.AppInfo.Appns == "ALL_NAMESPACES" { + engine.AppInfo.Appns = "" + } else if engine.AppInfo.Appns == "" { + engine.AppInfo.Appns = engine.Instance.Namespace + } + if engine.AppInfo.AppKind == "" { engine.AppInfo.AppKind = "KIND" }