argocd-vault-plugin
argocd-vault-plugin copied to clipboard
Error: ToYAML: could not convert replaced template into : EOF
Describe the bug We are getting yaml generation error while running argocd-vault-plugin generate argocd_secret-test.yaml while using argocd-vault-plugin version - v0.7.0 argocd_secret-test.txt
To Reproduce Steps to reproduce the behavior:
- Download attached argocd_secret-test.txt file and rename to argocd_secret-test.yaml ( am unable to upload yaml file extension hence renamed )
- Set the required environment variables to argoCD plugin
- Run the following command ( $ argocd-vault-plugin generate argocd_secret-test.yaml)
- $
- See error
- Error: ToYAML: could not convert replaced template into : EOF
Usage:
argocd-vault-plugin generate
[flags]
Flags: -c, --config-path string path to a file containing Vault configuration (YAML, JSON, envfile) to use -h, --help help for generate -s, --secret-name string name of a Kubernetes Secret containing Vault configuration data in the argocd namespace of your ArgoCD host (Only available when used in ArgoCD)
ToYAML: could not convert replaced template into : EOF
Expected behavior Yaml to be generated properly
Screenshots/Verbose output output posted above
Additional context We are seeing this issue if total count of char in file 4079. +/- chars to count 4079 is working fine
@ymadhumohanreddi 0.7.0 is a very old version, if possible, can you try with v1.14.0