Revert filtering on repositories to be updated (#1412)

This reverts a part of #1383 so that repository updates are done in the pre-0.125.0 way, which tries to update any repositories only once regardless of they are referenced by selected releases or not.

Ref #1404
This commit is contained in:
KUOKA Yusuke 2020-08-13 10:10:30 +09:00 committed by GitHub
parent ab1c118022
commit ec87a39015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -2490,6 +2490,7 @@ releases:
var wantRepos = []mockRepo{
{Name: "stable"},
{Name: "stable2"},
}
var buffer bytes.Buffer

View File

@ -330,15 +330,10 @@ func (st *HelmState) getRepositoriesToSync() (map[string]bool, error) {
}
func (st *HelmState) SyncRepos(helm RepoUpdater, shouldSkip map[string]bool) ([]string, error) {
shouldUpdate, err := st.getRepositoriesToSync()
if err != nil {
return nil, err
}
var updated []string
for _, repo := range st.Repositories {
if !shouldUpdate[repo.Name] || shouldSkip[repo.Name] {
if shouldSkip[repo.Name] {
continue
}