mirror of
https://github.com/kubevela/kubevela.git
synced 2026-03-05 03:01:21 +00:00
* Store capability OpenAPI V3 JSON schema in ConfigMap Store the OpenAPI v3 JSON Schema generated from the parameters of a capability which could be used by api server To fix #899 address comments try to fix data race issue Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com> * address comments: generate cue instance from cue json instead of local file * update ConfigMap data at any time * add more unit-test * fix conflicts * adapt to new spec.schematic.cue.template * adapt to new spec.schematic.cue.template for controller unittest cases * fix ci issues * adapt to namespaced scope definition * add more testcases on namespaced definitions with and without namespaces Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com>
1 line
1.4 KiB
JSON
Executable File
1 line
1.4 KiB
JSON
Executable File
{"properties":{"cmd":{"description":"Commands to run in the container","items":{"type":"string"},"title":"cmd","type":"array"},"cpu":{"description":"Number of CPU units for the service, like `0.5` (0.5 CPU core), `1` (1 CPU core)","title":"cpu","type":"string"},"env":{"description":"Define arguments by using environment variables","items":{"properties":{"name":{"description":"Environment variable name","title":"name","type":"string"},"value":{"description":"The value of the environment variable","title":"value","type":"string"},"valueFrom":{"description":"Specifies a source the value of this var should come from","properties":{"secretKeyRef":{"description":"Selects a key of a secret in the pod's namespace","properties":{"key":{"description":"The key of the secret to select from. Must be a valid secret key","title":"key","type":"string"},"name":{"description":"The name of the secret in the pod's namespace to select from","title":"name","type":"string"}},"required":["name","key"],"title":"secretKeyRef","type":"object"}},"required":["secretKeyRef"],"title":"valueFrom","type":"object"}},"required":["name"],"type":"object"},"title":"env","type":"array"},"image":{"description":"Which image would you like to use for your service","title":"image","type":"string"},"port":{"default":80,"description":"Which port do you want customer traffic sent to","title":"port","type":"integer"}},"required":["image","port"],"type":"object"} |