Closed odise closed 2 years ago
I guess something like:
ignore: {{ .Values.gitRepository.spec.ignore | toYaml }}
in https://github.com/fluxcd-community/helm-charts/blob/main/charts/flux2-sync/templates/flux-gitrepository.yaml#L32 should fix the problem.
this has nothing to do with ignore, multi-line works file, the ref is wrong.
Even when I set it to:
gitRepository:
spec:
url: repository_url
ref:
branch: branch
the error stays the same.
You're right, the bug is here https://github.com/fluxcd-community/helm-charts/blob/main/charts/flux2-sync/templates/flux-gitrepository.yaml#L44
It should be:
{{- with .Values.gitRepository.spec.include }}
include: |
{{ . }}
{{- end }}
@stefanprodan you referring to include
(which is a list of maps). I refer to ignore
which should support multiline strings.
Yes, sorry I meant:
{{- with .Values.gitRepository.spec.ignore }}
ignore: |
{{ . }}
{{- end }}
Np, any chance to fix it and release in a short term notice?
PR welcome!
@stefanprodan here you go.
Describe the bug a clear and concise description of what the bug is.
I'm struggling setting a multiline git ignore configuration like:
This results in:
What's your helm version?
3.9.4
What's your kubectl version?
v1.24.3
What's the chart version?
1.0.0
What happened?
No response
What you expected to happen?
No response
How to reproduce it?
No response
Enter the changed values of values.yaml?
gitRepository: spec: ignore: |
exclude all
Enter the command that you execute and failing/misfunctioning.
helm upgrade -n flux-system -f x fluxcd-apps fluxcd-community/flux2-sync
Anything else we need to know?
No response