Skip to content

Commit

Permalink
fix: empty ytt rendering step output is not an error but warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Zebradil committed May 12, 2024
1 parent ca8f9ca commit 8ba573a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/myks/render_ytt.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package myks

import (
"errors"
"fmt"
"path/filepath"

Expand Down Expand Up @@ -77,7 +76,8 @@ func (y *Ytt) Render(previousStepFile string) (string, error) {
}

if res.Stdout == "" {
return "", errors.New("empty ytt output")
log.Warn().Msg(y.app.Msg(y.getStepName(), "Empty ytt output"))
return "", nil
}

log.Info().Msg(y.app.Msg(y.getStepName(), "Local ytt rendered"))
Expand Down

0 comments on commit 8ba573a

Please sign in to comment.