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:
parent
ab1c118022
commit
ec87a39015
|
|
@ -2490,6 +2490,7 @@ releases:
|
|||
|
||||
var wantRepos = []mockRepo{
|
||||
{Name: "stable"},
|
||||
{Name: "stable2"},
|
||||
}
|
||||
|
||||
var buffer bytes.Buffer
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue