Closed jete-vian closed 9 months ago
Currently, the supported format for referenced valueFile from another source is $<ref_variable_name>/<path_to_file>
. That is, the referenced value file needs to start with $<ref_variable_name>
.
In this case, the format supported would be $myRepo/helm/external-values/argo-workflows/dev.enc.values.yaml
.
Currently, the supported format for referenced valueFile from another source is
$<ref_variable_name>/<path_to_file>
. That is, the referenced value file needs to start with$<ref_variable_name>
.In this case, the format supported would be
$myRepo/helm/external-values/argo-workflows/dev.enc.values.yaml
.
I understand the format is the proposed and currently supported format. I shouldn't of labeled this a bug but it seems to render helm-secrets useless for multi-source apps. Will this be revisited in the future?
The current proposal to rearrange a desired behaviour for multi-source applications here shows three implementation vectors:
substitute the long-lived cache path of the referenced repo. Instead, copy the one referenced file out of the referenced repo to a new, randomized, temporary path. This has three advantages:
- we don't care so much about the possibility of leaking the path - I think we could arbitrarily substitute the path into the valuesFile string
- we don't have to hold a lock on the referenced source path as long - we release the lock immediately after copying the one file out
- we no longer have to prevent referencing the same repo at a different revision, because we're no longer holding a lock on the referenced repo while generating the referencing repo's sources - I've seen at least one person who wanted this restriction lifted
Checklist:
argocd version
.Describe the bug
I'm using the new multiple sources functionality in 2.6 trying to read secrets via helm secrets. It seems $myRepo is undefined or empty, therefore it can't find the proper path to the secrets file.
I receive this error message
[helm-secrets] File does not exist: /helm/external-values/argo-workflows/dev.enc.values.yaml Error: plugin "scripts/run.sh downloader" exited with error
To Reproduce
Expected behavior
I expect the $myRepo variable to contain the path and the secrets file to be located. Instead, It's unable to find the secrets file.
Version
Logs