Merge pull request #4296 from Skarlso/fix-apply-timeout-on-empty-set

fix: only wait for changeset if the result is not empty
This commit is contained in:
Hidde Beydals 2023-10-12 14:12:01 +02:00 committed by GitHub
commit 771b7ab98a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {