Fix and enhancement to repository update (#1383)

Changes:

- Prevent Helmfile from unnecessarily running `helm repo add` and `helm repo up` against repositories for unused repositories(repositories of releases filtered out by selector)
- Fixes #1330
This commit is contained in:
KUOKA Yusuke
2020-07-28 10:17:43 +09:00
committed by GitHub
parent ee8ea507a6
commit 1e260e4a5e
7 changed files with 323 additions and 245 deletions
+1 -1
View File
@@ -923,7 +923,7 @@ func TestHelmState_SyncRepos(t *testing.T) {
state := &HelmState{
Repositories: tt.repos,
}
if _ = state.SyncRepos(tt.helm); !reflect.DeepEqual(tt.helm.Repo, tt.want) {
if _, _ = state.SyncRepos(tt.helm, map[string]bool{}); !reflect.DeepEqual(tt.helm.Repo, tt.want) {
t.Errorf("HelmState.SyncRepos() for [%s] = %v, want %v", tt.name, tt.helm.Repo, tt.want)
}
})