Skip to content

Commit

Permalink
Merge pull request #4296 from Skarlso/fix-apply-timeout-on-empty-set
Browse files Browse the repository at this point in the history
fix: only wait for changeset if the result is not empty
  • Loading branch information
hiddeco authored Oct 12, 2023
2 parents be03ca3 + a51ede6 commit 771b7ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/utils/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ func Apply(ctx context.Context, rcg genericclioptions.RESTClientGetter, opts *ru
changeSet.Append(cs.Entries)
}

if err := waitForSet(rcg, opts, changeSet); err != nil {
return "", err
if len(changeSet.Entries) > 0 {
if err := waitForSet(rcg, opts, changeSet); err != nil {
return "", err
}
}

if len(stageTwo) > 0 {
Expand Down

0 comments on commit 771b7ab

Please sign in to comment.