Skip to content

[Bug] argocd kcl-pluginfails with error generating manifests: failed to unmarshal manifest: error converting YAML to JSON: yaml: line 2: mapping values are not allowed  #343

Closed
@metacoma

Description

@metacoma

1. Minimal reproduce step (Required)

  1. Deploy argocd with kcl-plugin as described here https://www.kcl-lang.io/blog/2023-07-31-kcl-github-argocd-gitops/
  2. Create application
        argocd app create mindwm \
                --repo https://github.com/mindwm/mindwm-gitops \
                --path . \
                --dest-namespace default \
                --dest-server https://kubernetes.default.svc \
                --revision 8de06cb9005f1419cbb19c978e121567f04c0c7f  \
                --config-management-plugin kcl-v1.0
  1. Sync application
argocd app sync mindwm

2. What did you expect to see? (Required)

Argocd appliaction sync state is "Ok"

3. What did you see instead (Required)

Argocd application sync state is "Fail" with error

error generating manifests: failed to unmarshal manifest: error converting YAML to JSON: yaml: line 2: mapping values are not allowed 

4. What is your KCL components version? (Required)

0.8.6-linux-amd64

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions