-
Notifications
You must be signed in to change notification settings - Fork 617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Helm tpl override issue in Flux #1197
Comments
Would be very useful to also have a copy of the |
@hiddeco This was the latest test of our helmrelease definition:
|
I do not see a Can you try downgrading to |
@hiddeco based on |
That should be impossible, as Helm first renders the resources as it would normally, and then calls the post-render, see: https://github.com/helm/helm/blob/c9fe3d118caec699eb2565df9838673af379ce12/pkg/action/install.go#L240 It should thus not make any modifications afterwards, and it looks like Helm itself fails to produce a valid manifest. |
Hello guys, Thanks for the answers. Just to be sure we are all on same input: In fluxcd v2:
The error is like if from Fluxcd it's not possible to take as default the values from https://github.com/JordanGoasdoue/golang-demo-app-reproduce-flux-error/blob/non-working-version/charts/golang-demo-app/templates/_metadata.yaml With both these version, it's working with helm, and on the template or install we have the right values We tried with already created namespaces, but we will try to rollback and see what happen 👌 |
@hiddeco we tried the same thing with a Flux |
Using Helm $ helm version
version.BuildInfo{Version:"v3.5.3", GitCommit:"041ce5a2c17a58be0fcd5f5e16fb3e7e95fea622", GitTreeState:"dirty", GoVersion:"go1.16.2"}
$ helm install . --debug --dry-run --generate-name --namespace foo
install.go:173: [debug] Original chart version: ""
install.go:190: [debug] CHART PATH: /home/hidde/Projects/golang-demo-app-reproduce-flux-error/charts/golang-demo-app
Error: rendered manifests contain a resource that already exists. Unable to continue with install: could not get information about the resource: resource name may not be empty
helm.go:81: [debug] resource name may not be empty I think the error is thus with the chart, and not with the helm-controller. |
Very interesting @hiddeco, we observe the same behavior.
|
Closing this, as it is essentially an upstream issue. |
We are using FluxCD v0.11.0.
We are trying to deploy a Helm Chart using tpl overrides with Flux:
The error reported by Flux is:
PS: Both charts are working with a manual Helm install/upgrade command:
The text was updated successfully, but these errors were encountered: