Skip to content

Commit

Permalink
Merge pull request #58 from HotelsDotCom/ignore-non-chart-files-durin…
Browse files Browse the repository at this point in the history
…g-reindex

Ignore anything that isn't a chart when reindexing
  • Loading branch information
hypnoglow authored Nov 6, 2018
2 parents fb42ca7 + 3ad47f0 commit 190597d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/awss3/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@ func (s *Storage) traverse(ctx context.Context, repoURI string, items chan<- Cha
// is flat and cannot contain nested directories.
continue
}
if key == "index.yaml" {
// Ignore the index itself.

if !strings.HasSuffix(key, ".tgz") {
// Ignore any file that isn't a chart
// This could include index.yaml
// or any other kind of file that might be in the repo
continue
}

Expand Down

0 comments on commit 190597d

Please sign in to comment.