@@ -297,11 +297,10 @@ pub mod lib {
297297 replicas: i32
298298 }
299299 fn check_value(value: String) -> Result<String, String> {
300− let split_value = value.split('=').collect::<Vec<_>>();
301− if split_value.len() == 2 {
302− Ok(value)
303− } else {
304− Err(format!("Override value {} is malformed", value))
300+ let re = Regex::new(r"^([^=]*)=(.*)$").unwrap();
301+ match re.captures(&value) {
302+ Some(_) => return Ok(value),
303+ None => return Err(format!("Override value {} is malformed", value)),
305304 }
306305 }
307306 pub fn overrides(cli_opts: &CliOpts, envs: &EnvVars) -> Option<Vec<String>> {