spotify / helios

Docker container orchestration platform
Apache License 2.0
2.11k stars 234 forks source link

Adding global flag `--strict-start` to wildcard-based commands. #1269

Open hstefan opened 5 years ago

hstefan commented 5 years ago

This forces job names to be matched from the string start. By default, some commands will match on any jobs that contain the input name as a substring, this option forces the match to only happen if the string starts with the input name. Affects the subcommands: remove, inspect, rolling-update, undeploy, deploy and stop.

The motivation behind this is production usages returning "JOB_AMBIGUOUS_REFERENCE" in cases where a job's name is a substring of another (eg: foo-bar and bar-foo-bar, as the first a substring of the second).