Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions internal/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ func (builder *Builder) generateRepositoryConfig(repositoryConfigName string, ch
for _, dep := range chartYaml["dependencies"].([]interface{}) {
d := dep.(map[interface{}]interface{})
repositoryUrl := d["repository"].(string)

// Do not include repository url in the repositories.yaml if it is not https
// Helm does not create an [app]-index.yaml that contains all the version of the chart for non-https repo
// Including the url in the repositories.yaml will cause the helm to lookup for the index file and fail
if !strings.HasPrefix(repositoryUrl, "https://") {
continue
}

name := d["name"].(string)
username := ""
password := ""
Expand Down