MCPcopy Create free account
hub / github.com/Qovery/engine / exec

Method exec

lib-engine/src/helm.rs:1125–1149  ·  view source on GitHub ↗
(
        &self,
        _kubernetes_config: &Path,
        _envs: &[(&str, &str)],
        payload: Option<ChartPayload>,
        cmd_killer: &CommandKiller,
    )

Source from the content-addressed store, hash-verified

1123 }
1124
1125 fn exec(
1126 &self,
1127 _kubernetes_config: &Path,
1128 _envs: &[(&str, &str)],
1129 payload: Option<ChartPayload>,
1130 cmd_killer: &CommandKiller,
1131 ) -> Result<Option<ChartPayload>, HelmChartError> {
1132 let chart_info = self.get_chart_info();
1133 match chart_info.action {
1134 Deploy => {
1135 let _ = self.helm.upgrade_diff(chart_info, &[], &mut |_| {});
1136 match self.helm.upgrade(chart_info, &[], cmd_killer) {
1137 Ok(_) => {}
1138 Err(e) => {
1139 return Err(HelmChartError::HelmError(e));
1140 }
1141 };
1142 }
1143 HelmAction::Destroy => {
1144 self.helm
1145 .uninstall(chart_info, &[], &CommandKiller::never(), &mut |_| {}, &mut |_| {})?;
1146 }
1147 }
1148 Ok(payload)
1149 }
1150
1151 fn on_deploy_failure(
1152 &self,

Callers 2

runMethod · 0.45

Calls 5

HelmErrorEnum · 0.85
upgrade_diffMethod · 0.80
upgradeMethod · 0.80
uninstallMethod · 0.80
get_chart_infoMethod · 0.45

Tested by 1