How to import data from other files within a .k file? #1809
Unanswered
kubernegit
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I import data from another .k-file within a .k-file?
The normal import seems to target schemas only. I haven't figured out yet how to import other data that is defined in kcl.
Using multi file compilation may lead to nicely decoupled kcl files but it also shifts the problem to another layer, so that the calling instance needs to know which files do belong together. My target would be to do something like
kcl run -S myconfig mykclfile.k
and do all imports within the .k file.Beta Was this translation helpful? Give feedback.
All reactions