argocd-vault-plugin icon indicating copy to clipboard operation
argocd-vault-plugin copied to clipboard

Error: ToYAML: could not convert replaced template into : EOF

Open ymadhumohanreddi opened this issue 2 years ago • 1 comments

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:

  1. Download attached argocd_secret-test.txt file and rename to argocd_secret-test.yaml ( am unable to upload yaml file extension hence renamed )
  2. Set the required environment variables to argoCD plugin
  3. Run the following command ( $ argocd-vault-plugin generate argocd_secret-test.yaml)
  4. $
  5. See error
  6. 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 avatar Dec 21 '22 21:12 ymadhumohanreddi

@ymadhumohanreddi 0.7.0 is a very old version, if possible, can you try with v1.14.0

werne2j avatar Mar 29 '23 19:03 werne2j