(args: &mut Vec<String>, chart: &ChartInfo)
| 1890 | } |
| 1891 | |
| 1892 | fn append_engine_post_renderer_args(args: &mut Vec<String>, chart: &ChartInfo) { |
| 1893 | if !chart.enable_engine_post_renderer_labels { |
| 1894 | return; |
| 1895 | } |
| 1896 | |
| 1897 | let current_exe = match std::env::current_exe() { |
| 1898 | Ok(path) => path, |
| 1899 | Err(e) => { |
| 1900 | warn!("Cannot resolve engine executable path for helm post-renderer, skipping: {e}"); |
| 1901 | return; |
| 1902 | } |
| 1903 | }; |
| 1904 | |
| 1905 | let Some(current_exe_dir) = current_exe.parent() else { |
| 1906 | warn!("Cannot resolve engine executable directory for helm post-renderer, skipping"); |
| 1907 | return; |
| 1908 | }; |
| 1909 | |
| 1910 | let post_renderer_path = current_exe_dir |
| 1911 | .join(format!("{ENGINE_POST_RENDERER_BINARY}{}", std::env::consts::EXE_SUFFIX)) |
| 1912 | .to_string_lossy() |
| 1913 | .to_string(); |
| 1914 | |
| 1915 | args.push("--post-renderer".to_string()); |
| 1916 | args.push(post_renderer_path); |
| 1917 | } |
| 1918 | |
| 1919 | fn helm_exec_with_output<STDOUT, STDERR>( |
| 1920 | args: &[&str], |
no test coverage detected