Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hinricht committed Mar 15, 2023
0 parents commit a949464
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Related Github issue: https://github.com/helmfile/helmfile/issues/743

When using a kustomization, `helmfile template` fails with `Error: unknown flag: --load_restrictor]`
Downgrading `kustomize` to i.e. `4.5.6` fixed it.

Steps to reproduce:

* Install Kustomize >= 5

Then:

https://github.com/hinricht/helmfile-kustomize5.git
cd helmfile-kustomize5
helmfile template

With Kustomize>=5 this error will show:

```
$ helmfile template
in ./helmfile.yaml: [exit status 1
COMMAND:
kustomize -o /tmp/chartify559297089/test/monitoring/test/templates/kustomized.yaml build --load_restrictor=none --enable_alpha_plugins /tmp/chartify559297089/test/monitoring/test
OUTPUT:
Error: unknown flag: --load_restrictor]
```

With Kustomize <5 `helmfile template` works as expected.
7 changes: 7 additions & 0 deletions helmfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
helmDefaults:
kubeContext: "test"

releases:
- name: test
namespace: monitoring
chart: ./test
2 changes: 2 additions & 0 deletions test/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resources:
- test.yaml
4 changes: 4 additions & 0 deletions test/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: monitoring

0 comments on commit a949464

Please sign in to comment.