Skip to content

Commit

Permalink
fix: rollback loaded chart
Browse files Browse the repository at this point in the history
  • Loading branch information
siyul-park committed Oct 9, 2024
1 parent 3eba618 commit 1e0914e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/chart/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ func (l *Loader) Load(ctx context.Context, charts ...*Chart) error {
}
}

if len(errs) > 0 {
loaded = nil
}

for _, id := range l.table.Keys() {
chrt := l.table.Lookup(id)
if chrt != nil && len(resource.Match(chrt, examples...)) > 0 {
Expand Down

0 comments on commit 1e0914e

Please sign in to comment.