-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a949464
Showing
4 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
helmDefaults: | ||
kubeContext: "test" | ||
|
||
releases: | ||
- name: test | ||
namespace: monitoring | ||
chart: ./test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
resources: | ||
- test.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: monitoring |