diff --git a/pkg/app/app_test.go b/pkg/app/app_test.go index df79ee51..8243b63d 100644 --- a/pkg/app/app_test.go +++ b/pkg/app/app_test.go @@ -2097,11 +2097,12 @@ type configImpl struct { skipSchemaValidation bool skipRefresh bool - skipNeeds bool - includeNeeds bool - includeTransitiveNeeds bool - skipCharts bool - kubeVersion string + skipNeeds bool + includeNeeds bool + includeTransitiveNeeds bool + enforceNeedsAreInstalled bool + skipCharts bool + kubeVersion string } func (c configImpl) Selectors() []string { @@ -2156,6 +2157,10 @@ func (c configImpl) IncludeTransitiveNeeds() bool { return c.includeTransitiveNeeds } +func (c configImpl) EnforceNeedsAreInstalled() bool { + return c.enforceNeedsAreInstalled +} + func (c configImpl) OutputDir() string { return "output/subdir" } @@ -2216,44 +2221,45 @@ type applyConfig struct { // TODO: Remove this function once Helmfile v0.x retainValuesFiles bool - set []string - validate bool - skipCleanup bool - skipCRDs bool - skipDeps bool - skipRefresh bool - skipNeeds bool - includeNeeds bool - includeTransitiveNeeds bool - includeTests bool - suppress []string - suppressSecrets bool - showSecrets bool - noHooks bool - suppressDiff bool - noColor bool - color bool - context int - diffOutput string - concurrency int - detailedExitcode bool - stripTrailingCR bool - interactive bool - skipDiffOnInstall bool - syncArgs string - diffArgs string - logger *zap.SugaredLogger - wait bool - waitForJobs bool - reuseValues bool - postRenderer string - postRendererArgs []string - skipSchemaValidation bool - kubeVersion string - suppressOutputLineRegex []string - showOnly []string - hideNotes bool - takeOwnership bool + set []string + validate bool + skipCleanup bool + skipCRDs bool + skipDeps bool + skipRefresh bool + skipNeeds bool + includeNeeds bool + includeTransitiveNeeds bool + enforceNeedsAreInstalled bool + includeTests bool + suppress []string + suppressSecrets bool + showSecrets bool + noHooks bool + suppressDiff bool + noColor bool + color bool + context int + diffOutput string + concurrency int + detailedExitcode bool + stripTrailingCR bool + interactive bool + skipDiffOnInstall bool + syncArgs string + diffArgs string + logger *zap.SugaredLogger + wait bool + waitForJobs bool + reuseValues bool + postRenderer string + postRendererArgs []string + skipSchemaValidation bool + kubeVersion string + suppressOutputLineRegex []string + showOnly []string + hideNotes bool + takeOwnership bool // template-only options includeCRDs, skipTests bool @@ -2316,6 +2322,10 @@ func (a applyConfig) IncludeTransitiveNeeds() bool { return a.includeTransitiveNeeds } +func (a applyConfig) EnforceNeedsAreInstalled() bool { + return a.enforceNeedsAreInstalled +} + func (a applyConfig) IncludeTests() bool { return a.includeTests } diff --git a/pkg/app/diff_test.go b/pkg/app/diff_test.go index f1987143..27e24988 100644 --- a/pkg/app/diff_test.go +++ b/pkg/app/diff_test.go @@ -16,36 +16,37 @@ import ( ) type diffConfig struct { - args string - diffArgs string - values []string - retainValuesFiles bool - set []string - validate bool - skipCRDs bool - skipDeps bool - skipRefresh bool - includeTests bool - skipNeeds bool - includeNeeds bool - includeTransitiveNeeds bool - suppress []string - suppressSecrets bool - showSecrets bool - noHooks bool - suppressDiff bool - suppressOutputLineRegex []string - noColor bool - context int - diffOutput string - concurrency int - detailedExitcode bool - stripTrailingCR bool - interactive bool - skipDiffOnInstall bool - skipSchemaValidation bool - reuseValues bool - logger *zap.SugaredLogger + args string + diffArgs string + values []string + retainValuesFiles bool + set []string + validate bool + skipCRDs bool + skipDeps bool + skipRefresh bool + includeTests bool + skipNeeds bool + includeNeeds bool + includeTransitiveNeeds bool + enforceNeedsAreInstalled bool + suppress []string + suppressSecrets bool + showSecrets bool + noHooks bool + suppressDiff bool + suppressOutputLineRegex []string + noColor bool + context int + diffOutput string + concurrency int + detailedExitcode bool + stripTrailingCR bool + interactive bool + skipDiffOnInstall bool + skipSchemaValidation bool + reuseValues bool + logger *zap.SugaredLogger } func (a diffConfig) Args() string { @@ -96,6 +97,10 @@ func (a diffConfig) IncludeTransitiveNeeds() bool { return a.includeTransitiveNeeds } +func (a diffConfig) EnforceNeedsAreInstalled() bool { + return a.enforceNeedsAreInstalled +} + func (a diffConfig) Suppress() []string { return a.suppress }