github.com/oam-dev/kubevela@v1.9.11/references/docgen/testdata/testdef.cue (about)

     1  "testdef": {
     2  	type: "component"
     3  	annotations: {
     4  		"definition.oam.dev/example-url": "http://127.0.0.1:65501/examples/applications/create-namespace.yaml"
     5  	}
     6  	labels: {}
     7  	description: "K8s-objects allow users to specify raw K8s objects in properties"
     8  	attributes: workload: type: "autodetects.core.oam.dev"
     9  }
    10  template: {
    11  	outputs: {
    12  		for i, v in parameter.objects {
    13  			if i > 0 {
    14  				"objects-\(i)": v
    15  			}
    16  		}
    17  	}
    18  	parameter: {
    19  		// +usage=A test key
    20  		objects: [...{}]
    21  	}
    22  }