Skip to content

Commit

Permalink
Use TargetDSP on SCRIPT_RUN_ROLLBACK stage
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
  • Loading branch information
ffjlabo committed Sep 18, 2024
1 parent 5d3e17d commit a936845
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/app/piped/executor/kubernetes/rollback.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ func (e *rollbackExecutor) ensureScriptRunRollback(ctx context.Context) model.St
return model.StageStatus_STAGE_SUCCESS
}

ds, err := e.TargetDSP.Get(ctx, e.LogPersister)
if err != nil {
e.LogPersister.Errorf("Failed to prepare target deploy source data (%v)", err)
return model.StageStatus_STAGE_FAILURE
}
e.appDir = ds.AppDir

Check warning on line 204 in pkg/app/piped/executor/kubernetes/rollback.go

View check run for this annotation

Codecov / codecov/patch

pkg/app/piped/executor/kubernetes/rollback.go#L198-L204

Added lines #L198 - L204 were not covered by tests
envStr, ok := e.Stage.Metadata["env"]
env := make(map[string]string, 0)
if ok {
Expand Down

0 comments on commit a936845

Please sign in to comment.