fix: only wait for changeset if the result is not empty
Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
(cherry picked from commit a51ede681f)
This commit is contained in:
committed by
github-actions[bot]
parent
b3e432cd8e
commit
5e412ee73d
@@ -76,9 +76,11 @@ func Apply(ctx context.Context, rcg genericclioptions.RESTClientGetter, opts *ru
|
||||
changeSet.Append(cs.Entries)
|
||||
}
|
||||
|
||||
if len(changeSet.Entries) > 0 {
|
||||
if err := waitForSet(rcg, opts, changeSet); err != nil {
|
||||
return "", err
|
||||
}
|
||||
}
|
||||
|
||||
if len(stageTwo) > 0 {
|
||||
cs, err := applySet(ctx, rcg, opts, stageTwo)
|
||||
|
||||
Reference in New Issue
Block a user