helmfile icon indicating copy to clipboard operation
helmfile copied to clipboard

Global hooks not running with nested sub-helmfiles

Open igorkatz opened this issue 3 years ago • 1 comments

Hi, My helmfile version: helmfile version v0.139.9

snippet of my helmfile.yaml:

---
repositories:
  - ...

helmDefaults:
  timeout: 600
  atomic: true
  cleanupOnFail: true
  skipDeps: true

hooks:
- events: ["prepare"]
  showlogs: true
  command: "/bin/sh"
  args: ["-c", "kubectl apply -f predefined-env.yaml --namespace mi-paas"]

helmfiles:
  - groups/*.yaml

helmfile command is used: helmfile --debug --no-color apply --skip-diff-on-install --skip-deps

Problem: Global hooks do not work when nested asub-helmfiles are defined If remove nested sub-helmfiles, global hooks will run:

helmfiles:
#  - groups/*.yaml

igorkatz avatar Nov 01 '21 10:11 igorkatz

I am having the same problem. It was working about a month or two ago but not now. Given the age of this issue perhaps it was fixed then reintroduced?

tonygilkerson avatar Sep 06 '22 20:09 tonygilkerson