You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think an option to pass literal values to helm like with --set-file would be useful.
Steps to reproduce
Create Secret from the file kubectl create secret generic 1password-credentials --from-file=1password-credentials=1password-credentials.json -n 1password
Create HelmRepository and HelmRelease objects (see description)
Observe HelmRelease failing to deploy:
unable to merge value from key '1password-credentials' in Secret '1password/1password-credentials' into target path 'connect.credentials': key "\"localHash\":\"xxx\"}" has no value (cannot end with ,)
Expected behavior
Value is passed as a whole to targetPath: connect.credentials
Screenshots and recordings
No response
OS / Distro
N/A
Flux version
0.16.0
Flux check
N/A
Git provider
No response
Container Registry provider
No response
Additional context
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Thank you @hiddeco. I should have seen the separate helm-controller repo. There is also fluxcd/helm-controller#42 mentioning --set-file directly.
If I understand fluxcd/helm-controller#298 correctly, it will make sed 's/\([][{},.]\)/\\\1/g' unnecessary but still require to quote & escape the contents of a file like this
Describe the bug
Following a guide I have to pass a json file as a value of a chart:
The file
1password-credentials.json
looks like this:To do it using flux, I have created a HelmRepository and HelmRelease like this:
Now simply creating a secret with the file contents
fails as helm will try and fail to parse those.
I had to use a workaround mentioned here to escape the whole file contents:
I think an option to pass literal values to helm like with
--set-file
would be useful.Steps to reproduce
kubectl create secret generic 1password-credentials --from-file=1password-credentials=1password-credentials.json -n 1password
HelmRepository
andHelmRelease
objects (see description)HelmRelease
failing to deploy:Expected behavior
Value is passed as a whole to
targetPath: connect.credentials
Screenshots and recordings
No response
OS / Distro
N/A
Flux version
0.16.0
Flux check
N/A
Git provider
No response
Container Registry provider
No response
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: