github.com/oam-dev/kubevela@v1.9.11/pkg/config/testdata/mysql-db-nacos.cue (about) 1 metadata: { 2 name: "nacos" 3 alias: "Nacos Config" 4 } 5 6 template: { 7 nacos: { 8 // can not references the parameter 9 endpoint: { 10 name: "nacos" 11 namespace: "default" 12 } 13 format: "properties" 14 15 // could references the parameter 16 metadata: { 17 dataId: parameter.dataId 18 group: parameter.group 19 if parameter.appName != _|_ { 20 appName: parameter.appName 21 } 22 } 23 content: parameter.content 24 } 25 outputs: { 26 "test": { 27 kind: "ConfigMap" 28 apiVersion: "v1" 29 metadata: { 30 name: context.name 31 namespace: context.namespace 32 } 33 data: { 34 "string": "string" 35 } 36 } 37 } 38 parameter: { 39 dataId: string 40 group: *"DEFAULT_GROUP" | string 41 appName?: string 42 content: { 43 mysqlHost: string 44 mysqlPort: int 45 username?: string 46 password?: string 47 } 48 } 49 }