The withNeeds function was calling getSelectedReleases with false, false for includeNeeds and includeTransitiveNeeds, which caused it to ignore the --include-needs and --include-transitive-needs flags. This fix: 1. Computes includeNeeds before calling getSelectedReleases 2. Passes the correct flags to getSelectedReleases 3. Sets st.Releases to selectedAndNeededReleases instead of deduplicated 4. Passes IncludeNeeds=false and IncludeTransitiveNeeds=false to PlanReleases since the needs are already included in selectedReleases 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 | ||