mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-09 20:56:06 +02:00
feat: exit code 2 on unmatched selectors
Along with the fix for the bug introduced via #217 Resolves #219
This commit is contained in:
+1
-1
@@ -613,11 +613,11 @@ func (state *HelmState) FilterReleases(labels []string) error {
|
||||
for _, r := range releaseSet {
|
||||
filteredReleases = append(filteredReleases, r)
|
||||
}
|
||||
state.Releases = filteredReleases
|
||||
if len(filteredReleases) == 0 {
|
||||
state.logger.Debugf("specified selector did not match any releases in %s\n", state.FilePath)
|
||||
return nil
|
||||
}
|
||||
state.Releases = filteredReleases
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user