Skip to content

Commit

Permalink
Use TargetDSP on SCRIPT_RUN_ROLLBACK stage (#5215)
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshiki Fujikane <[email protected]>
  • Loading branch information
ffjlabo authored Sep 19, 2024
1 parent 9fcf50d commit 0e7a177
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

envStr, ok := e.Stage.Metadata["env"]
env := make(map[string]string, 0)
if ok {
Expand Down

0 comments on commit 0e7a177

Please sign in to comment.