-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fluxcd failed to automate helmrelease chart-image #2618
Comments
The structure you are linking to works fine, and is actually covered by tests, as can be seen here. Does this problem only occur for the automation of |
Thanks for looking into this issue.
|
I managed to find the issue, the problem lies with the assumption we make when we try to construct a valid
This is however not true, when we look at I think the solution would be, to first collect all values, and then try to create an |
Thanks a lot @hiddeco 🎉 🍻 |
Describe the bug
A clear and concise description of what the bug is.
fluxcd is unable to automate a helmrelease structure / chart-image with more than two path values within the repository statement.
Example image path:
private-docker-registry.net/public/bitnami/redis:5.0.6
<registry> <repository (with more than two values)>:<imagetag>
The following helmrelease structure failed to automate the chart-image as the repository statement only accept two path values.
We found the code source for this behavior here:
flux/pkg/image/image.go
Lines 145 to 161 in 07b3d3d
To Reproduce
Steps to reproduce the behaviour:
If you check-in an helmrelease with the following structure:
fluxcd is unable to automate the helmrelease with the following error:
we also tried the following
than the error will be
as
public/
will be ignored and stripped outExpected behavior
A clear and concise description of what you expected to happen.
fluxcd should support a repository statement with more than 2 path values
Logs
If applicable, please provide logs of
fluxd
or the helm-operator. In a standard stand-alone installation of Flux, you'd get this by runningkubectl logs -n default deploy/flux
.see above
Additional context
Add any other context about the problem here, e.g
The text was updated successfully, but these errors were encountered: