Closed karlderkaefer closed 3 months ago
While reading through other github issue, I have found that I need to import specific kcl file. This version is working
import crossplane.v1.apiextensions_crossplane_io_v1_composite_resource_definition as xrd
xrd.CompositeResourceDefinition{
metadata.name: "my-xrd"
}
You can just use the following code.
import crossplane.v1
cc = v1.CompositeResourceDefinition{
metadata.name: "my-xrd"
}
thank you, that was the fastest fix I have ever seen in a github repo under 8min
👍 . I can confirm it works now
Bug Report
Im trying to import the crossplane kcl module an create a CompositeResourceDefinition. The docs are not that extensive on the import topic, please correct me if the bug report is not valid
1. Minimal reproduce step (Required)
the file
main.k
content:the content of
kcl.mod.lock
2. What did you expect to see? (Required)
Render a CompositionResourceDefinition
3. What did you see instead (Required)
then trying to render results in error message. This probably already happens during import
4. What is your KCL components version? (Required)
0.9.2