Skip to content

Commit

Permalink
fix: set the release phase as failed when exit apply prompt (#1148)
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-hm19 committed Jun 6, 2024
1 parent 01e877d commit 389d3ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/apply/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ func prompt(ui *terminal.UI) (string, error) {
WithDefaultOption("details").
// To gracefully exit if interrupted by SIGINT or SIGTERM.
WithOnInterruptFunc(func() {
release.UpdateReleasePhase(rel, apiv1.ReleasePhaseSucceeded, relLock)
release.UpdateReleasePhase(rel, apiv1.ReleasePhaseFailed, relLock)
release.UpdateApplyRelease(storage, rel, false, relLock)
os.Exit(1)
}).
Expand Down

0 comments on commit 389d3ee

Please sign in to comment.