helmfile icon indicating copy to clipboard operation
helmfile copied to clipboard

Ability to configure --skip-deps globally

Open mumoshu opened this issue 6 years ago • 10 comments

Extracted from https://github.com/roboll/helmfile/issues/791#issuecomment-519116755

mumoshu avatar Aug 07 '19 14:08 mumoshu

I still run into the issue of not being able to disable the flag :(

Morriz avatar Jan 31 '20 14:01 Morriz

Hi @mumoshu, can you please implement this? It leads to more errors now, like Chart.lock out of sync errors, even though our list length of repositories in helmfiles is exactly zero. Why even bother to query all that when there is no need?

Morriz avatar Feb 06 '20 13:02 Morriz

I assume that it can now be specified in helmfile.yaml

helmDefaults:
  skipDeps: true

dududko avatar Jan 18 '21 21:01 dududko

I assume that it can now be specified in helmfile.yaml

helmDefaults:
  skipDeps: true

I hope that works. Did you test that assumption? Or are you referring to some documentation your read?

Morriz avatar Jan 21 '21 11:01 Morriz

field skipDeps not found in type state.HelmSpec

Morriz avatar Jan 21 '21 11:01 Morriz

I found it in the Configuration section of the README.md https://github.com/roboll/helmfile#configuration

Maybe you are using the old version of helmfile, because this attribute present in the master branch. https://github.com/roboll/helmfile/blob/9b64d65d9478cbe7b9bbd9d9049160108b01f6da/pkg/state/state.go#L145

dududko avatar Jan 21 '21 11:01 dududko

We run 1.3.6 and see it mentioned in the README, but still get that error. I don't see any of the 4 PRs in 1.3.7 fixing that. Will create a separate issue for that.

Morriz avatar Jan 22 '21 09:01 Morriz

Does this work?

▓▓▓ helmfile

  Version              0.162.0
  Git Commit           9203641
  Build Date           18 Feb 24 10:46 UTC (1 month ago)
  Commit Date          18 Feb 24 04:10 UTC (1 month ago)
  Dirty Build          no
  Go version           1.22.0
  Compiler             gc
  Platform             linux/amd64

  │ A new release is available: 0.162.0 → v0.163.0
  │ https://github.com/helmfile/helmfile/releases/tag/v0.163.0

I have the flag not being applied globally even when set at the root of my helmfiles

stephenc avatar Mar 22 '24 17:03 stephenc

Aha! works with 0.163.0

stephenc avatar Mar 22 '24 17:03 stephenc

does not work as --skip-deps works... with .helmDefaults.skipDeps the helm repo update command is still executed

carlosrmendes avatar Oct 02 '24 15:10 carlosrmendes