mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-18 04:11:02 +02:00
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:
@@ -2490,6 +2490,7 @@ releases:
|
||||
|
||||
var wantRepos = []mockRepo{
|
||||
{Name: "stable"},
|
||||
{Name: "stable2"},
|
||||
}
|
||||
|
||||
var buffer bytes.Buffer
|
||||
|
||||
+1
-6
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user