applicationset
applicationset copied to clipboard
Bug: RepositoryMatch filter is not working in combination with other filters
Specifying a RepositoryMatch
AND a PathsExist
filter does not work as expected. The ListRepos function will still fetch all the available repos, because compileFilters function does not return the correct filters.
compileFilters
function first checks for RepositoryMatch
and sets the FilterType
to 1
, then it checks for PathsExist
and overwrites the FilterType
to 2
. So when we reach this line, repoFilters
has a length of 0
.
A fix is being worked on in https://github.com/argoproj/applicationset/pull/511.