kcl-lang / kcl-lang.io

Source of the KCL Website. https://kcl-lang.io
https://kcl-lang.github.io
Apache License 2.0
12 stars 33 forks source link

argocd integration fails if target repo uses k8s module #386

Closed nestoralonso closed 1 month ago

nestoralonso commented 1 month ago

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

You need an argocd with kcl plugin as shown in the official docs

Take the example app https://github.com/kcl-lang/flask-demo-kcl-manifests and add the k8s module

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

kcl outputs pure yaml recognized by argocd and kubernetes

3. What did you see instead (Required)

cannot convert yaml to json because the script in kcl-cmp.yaml prints to stdout:

downloading 'kcl-lang/k8s:1.29' from 'ghcr.io/kcl-lang/k8s:1.29'

making the output not valid yaml

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

kcl version 0.8.9