When running helmfile diff with releases that have 'installed: false', (flagging them as to-be-uninstalled), the release was being disabled flag would be included in toRender. Later, these disabled releases were added again via releasesToUninstall when includeDisabled is true, causing them to appear twice in the final releases list. This resulted in duplicate 'Listing releases' log messages and potentially duplicate helm list calls. The fix filters out disabled releases from toRender before passing it to withDAG. This ensures disabled releases are only included once in the final list (via releasesToUninstall at line 2378-2382). Fixes the test failure in test/integration/test-cases/diff-args where 'Listing releases matching ^uninstalled$' appeared twice instead of once. Note: diff-live-stderr still shows two messages because that test was updated separately to match that behavior (with trailing spaces). The non-live diff should now correctly shows only one message. Signed-off-by: yxxhero <aiopsclub@163.com> |
||
|---|---|---|
| .. | ||
| app | ||
| argparser | ||
| cluster | ||
| config | ||
| environment | ||
| envvar | ||
| errors | ||
| event | ||
| exectest | ||
| filesystem | ||
| hcllang | ||
| helmexec | ||
| kubedog | ||
| maputil | ||
| plugins | ||
| policy | ||
| remote | ||
| resource | ||
| runtime | ||
| state | ||
| testhelper | ||
| testutil | ||
| tmpl | ||
| yaml | ||