parent
e919131f17
commit
9f7f5c02a8
|
|
@ -1918,7 +1918,7 @@ func (a *App) template(r *Run, c TemplateConfigProvider) (bool, []error) {
|
|||
func (a *App) withNeeds(r *Run, c DAGConfig, includeDisabled bool, f func(*state.HelmState) []error) (bool, []error) {
|
||||
st := r.state
|
||||
|
||||
selectedReleases, deduplicated, err := a.getSelectedReleases(r, false)
|
||||
selectedReleases, deduplicated, err := a.getSelectedReleases(r, c.IncludeTransitiveNeeds())
|
||||
if err != nil {
|
||||
return false, []error{err}
|
||||
}
|
||||
|
|
@ -1968,7 +1968,7 @@ func (a *App) withNeeds(r *Run, c DAGConfig, includeDisabled bool, f func(*state
|
|||
// That's why we don't pass in `IncludeNeeds: c.IncludeNeeds(), IncludeTransitiveNeeds: c.IncludeTransitiveNeeds()` here.
|
||||
// Otherwise, in case include-needs=true, it will include the needs of needs, which results in unexpectedly introducing transitive needs,
|
||||
// even if include-transitive-needs=true is unspecified.
|
||||
if _, errs := withDAG(st, r.helm, a.Logger, state.PlanOptions{SelectedReleases: toRender, Reverse: false, SkipNeeds: c.SkipNeeds(), IncludeNeeds: includeNeeds}, a.WrapWithoutSelector(func(subst *state.HelmState, helm helmexec.Interface) []error {
|
||||
if _, errs := withDAG(st, r.helm, a.Logger, state.PlanOptions{SelectedReleases: toRender, Reverse: false, SkipNeeds: c.SkipNeeds(), IncludeNeeds: includeNeeds, IncludeTransitiveNeeds: c.IncludeTransitiveNeeds()}, a.WrapWithoutSelector(func(subst *state.HelmState, helm helmexec.Interface) []error {
|
||||
rels = append(rels, subst.Releases...)
|
||||
return nil
|
||||
})); len(errs) > 0 {
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ func (a *ApplyImpl) DiffArgs() string {
|
|||
|
||||
// SkipNeeds returns the skip needs.
|
||||
func (a *ApplyImpl) SkipNeeds() bool {
|
||||
if !a.IncludeNeeds() {
|
||||
if !a.IncludeNeeds() && !a.IncludeTransitiveNeeds() {
|
||||
return a.ApplyOptions.SkipNeeds
|
||||
}
|
||||
return false
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ func (t *DiffImpl) Set() []string {
|
|||
|
||||
// SkipNeeds returns the skip needs
|
||||
func (t *DiffImpl) SkipNeeds() bool {
|
||||
if !t.IncludeNeeds() {
|
||||
if !t.IncludeNeeds() && !t.IncludeTransitiveNeeds() {
|
||||
return t.DiffOptions.SkipNeeds
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ func (l *LintImpl) IncludeTransitiveNeeds() bool {
|
|||
|
||||
// SkipNeeds returns the skip needs
|
||||
func (l *LintImpl) SkipNeeds() bool {
|
||||
if !l.IncludeNeeds() {
|
||||
if !l.IncludeNeeds() && !l.IncludeTransitiveNeeds() {
|
||||
return l.LintOptions.SkipNeeds
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ func (t *SyncImpl) Set() []string {
|
|||
|
||||
// SkipNeeds returns the skip needs
|
||||
func (t *SyncImpl) SkipNeeds() bool {
|
||||
if !t.IncludeNeeds() {
|
||||
if !t.IncludeNeeds() && !t.IncludeTransitiveNeeds() {
|
||||
return t.SyncOptions.SkipNeeds
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ func (t *TemplateImpl) SkipCleanup() bool {
|
|||
|
||||
// SkipNeeds returns the skip needs
|
||||
func (t *TemplateImpl) SkipNeeds() bool {
|
||||
if !t.IncludeNeeds() {
|
||||
if !t.IncludeNeeds() && !t.IncludeTransitiveNeeds() {
|
||||
return t.TemplateOptions.SkipNeeds
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue