Skip to content

Commit

Permalink
add ALL_NAMESPACES keyword for cluster-wide experiments
Browse files Browse the repository at this point in the history
Signed-off-by: Alvaro Gutierrez <[email protected]>
  • Loading branch information
AlvaroGG0 committed Apr 19, 2024
1 parent 7e657d7 commit f43690f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions controllers/chaosengine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit f43690f

Please sign in to comment.