mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-18 14:36:51 +02:00
fix: --include-needs should only include direct dependencies (#1003)
--include-needs was incorrectly including transitive dependencies when
it should only include direct dependencies per the documentation.
The issue was that ChartPrepareOptions.IncludeTransitiveNeeds was being
set to c.IncludeNeeds() instead of c.IncludeTransitiveNeeds() in the
chart preparation phase for diff, template, lint, sync, and apply commands.
This fix ensures:
- --include-needs includes only direct dependencies
- --include-transitive-needs includes both direct and transitive dependencies
Fixes #1003
Signed-off-by: yxxhero <yxxhero@users.noreply.github.com>
Signed-off-by: yxxhero <aiopsclub@163.com>
(cherry picked from commit 7a2cbeebb8)
Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
repositories:
|
||||
- name: incubator
|
||||
url: https://charts.helm.sh/incubator
|
||||
|
||||
releases:
|
||||
# release1 has no dependencies - this is a transitive dependency of release3
|
||||
- name: release1
|
||||
chart: incubator/raw
|
||||
namespace: default
|
||||
|
||||
# release2 depends on release1 - this is a direct dependency of release3
|
||||
- name: release2
|
||||
chart: incubator/raw
|
||||
namespace: default
|
||||
needs:
|
||||
- default/release1
|
||||
|
||||
# release3 depends on release2 (and transitively on release1)
|
||||
- name: release3
|
||||
chart: incubator/raw
|
||||
namespace: default
|
||||
needs:
|
||||
- default/release2
|
||||
Reference in New Issue
Block a user