Replies: 1 comment
-
You have already specified parameter in your cue template like:
The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
场景:通过cue模板,通过parameter参数的实际赋值来转换模板,实际用途比如我们想在apiserver里将用户的request参数直接转换成目的kubevela的application数据,而且我们不想定义struct,因为我们想通过额外的template cue文件来适配各种变动而不用修改apiserver的代码。
测试脚本:
运行结果:
IDE: Goland
Beta Was this translation helpful? Give feedback.
All reactions