ArgoCD sometimes fails to template Application manifest when using Helm Secrets #21341
Closed
3 tasks done
Labels
component:helm
user-issue
An issue caused by the user ecosystem, misconfiguration or misuse of Argo CD
version:2.11
Latest confirmed affected version is 2.11
Checklist
argocd version
.Describe the bug
Sometimes, when syncing an app with some
secrets://
values file that is indeed where it should be, the sync will fail with the following error, found in the UI and the repo server:Error: open secrets://secrets/prod.sops.yaml: no such file or directory
.(Trying) To Reproduce
We have not been able to reproduce consistently the issue, it seems to occur randomly when syncing such an app. However, here are some findings we discovered when trying to reproduce the behavior.
We did not manage to reproduce the bug manually, directly using the same
helm template
command (shown in the logs below) from within the repo server. However, the only way we found to reproduce this precise error message, was to launch the command without having installed thehelm-secrets
plugin.When the file is missing and
helm-secrets
is installed, the message is different:The fact that this error seems random but always mentions the
secrets://
file, combined with the fact that we could not obtain this exact error other than by removing the plugin, suggests that the problem is in the integration of the plugin.I am opening this issue in the ArgoCD repository as it is the only place where we saw the problem occur, since we were not able to reproduce it using directly Helm.
Expected behavior
The sync should never fail with this error when the file is not missing.
Versions
Logs
In the repo server:
The text was updated successfully, but these errors were encountered: