github.com/oam-dev/kubevela@v1.9.11/pkg/cue/script/testdata/webservice.json (about) 1 { 2 "openapi": "3.0.0", 3 "info": { 4 "title": "Generated by cue.", 5 "version": "no version" 6 }, 7 "paths": {}, 8 "components": { 9 "schemas": { 10 "parameter": { 11 "type": "object", 12 "required": [ 13 "image", 14 "port" 15 ], 16 "properties": { 17 "cmd": { 18 "description": "+usage=Commands to run in the container", 19 "type": "array", 20 "items": { 21 "type": "string" 22 } 23 }, 24 "env": { 25 "description": "+usage=Define arguments by using environment variables", 26 "type": "array", 27 "items": { 28 "type": "object", 29 "required": [ 30 "name" 31 ], 32 "properties": { 33 "name": { 34 "description": "+usage=Environment variable name", 35 "type": "string" 36 }, 37 "value": { 38 "description": "+usage=The value of the environment variable", 39 "type": "string" 40 }, 41 "valueFrom": { 42 "description": "+usage=Specifies a source the value of this var should come from", 43 "type": "object", 44 "required": [ 45 "secretKeyRef" 46 ], 47 "properties": { 48 "secretKeyRef": { 49 "description": "+usage=Selects a key of a secret in the pod's namespace", 50 "type": "object", 51 "required": [ 52 "name", 53 "key" 54 ], 55 "properties": { 56 "name": { 57 "description": "+usage=The name of the secret in the pod's namespace to select from", 58 "type": "string" 59 }, 60 "key": { 61 "description": "+usage=The key of the secret to select from. Must be a valid secret key", 62 "type": "string" 63 } 64 } 65 } 66 } 67 } 68 } 69 } 70 }, 71 "image": { 72 "description": "+usage=Which image would you like to use for your service\n+short=i", 73 "type": "string" 74 }, 75 "port": { 76 "description": "+usage=Which port do you want customer traffic sent to\n+short=p", 77 "type": "integer", 78 "default": 80 79 }, 80 "cpu": { 81 "description": "+usage=Number of CPU units for the service, like `0.5` (0.5 CPU core), `1` (1 CPU core)", 82 "type": "string" 83 } 84 } 85 } 86 } 87 } 88 }