Skip to content

Commit

Permalink
populate values files recursively
Browse files Browse the repository at this point in the history
Signed-off-by: bagnaram <11695670+bagnaram@users.noreply.github.com>
  • Loading branch information
bagnaram committed Oct 19, 2023
1 parent eb2abe9 commit e70b814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reposerver/repository/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -2080,7 +2080,7 @@ func loadFileIntoIfExists(path pathutil.ResolvedFilePath, destination *string) e
return nil
}

func walkHelmValueFilesInPath(root string, valuesFiles *[]string) filepath.WalkFunc {
func walkHelmValueFilesInPath(root string, valueFiles *[]string) filepath.WalkFunc {
return func(path string, info os.FileInfo, err error) error {

if err != nil {
Expand All @@ -2094,7 +2094,7 @@ func walkHelmValueFilesInPath(root string, valuesFiles *[]string) filepath.WalkF
if err != nil {
return fmt.Errorf("error traversing path from %s to %s: %w", root, path, err)
}
*valuesFiles = append(*valuesFiles, relPath)
*valueFiles = append(*valueFiles, relPath)
}

return nil
Expand Down

0 comments on commit e70b814

Please sign in to comment.