X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=xapp_onboarder%2Fxapp_onboarder%2Fhelm_controller%2Fxapp_schema.py;h=435e2830ba43a852e5118b3622fd24bede1f5f03;hb=refs%2Fchanges%2F03%2F3803%2F1;hp=e43f867bbf31dbef4b25c80e9ecad37d953ccaf0;hpb=cd4b9aaa9aa6f3f0bfef09c4808315f10a385310;p=it%2Fdev.git diff --git a/xapp_onboarder/xapp_onboarder/helm_controller/xapp_schema.py b/xapp_onboarder/xapp_onboarder/helm_controller/xapp_schema.py index e43f867..435e283 100644 --- a/xapp_onboarder/xapp_onboarder/helm_controller/xapp_schema.py +++ b/xapp_onboarder/xapp_onboarder/helm_controller/xapp_schema.py @@ -44,6 +44,22 @@ schema = { ], "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$" }, + "annotations": { + "$id": "#/properties/annotation", + "type": "object", + "title": "The k8s pod annotation", + "additionalProperties": { + "anyOf": [ + { "type": "string" }, + { + "type": "array", + "items": { + "type": "object" + } + } + ] + } + }, "containers": { "$id": "#/properties/containers", "type": "array", @@ -108,11 +124,32 @@ schema = { }, "command": { "$id": "#/properties/containers/items/properties/command", - "type": "string", - "title": "Command To Run The xApp Container", - "default": "command", - "examples": [ - "command" + "type": "array", + "items": [ + { + "$id": "#/properties/containers/items/properties/command/item", + "type": "string", + "title": "The Command Item", + "default": "/bin/sh", + "examples": [ + "/bin/sh" + ] + } + ] + }, + "args": { + "$id": "#/properties/containers/items/properties/args", + "type": "array", + "items": [ + { + "$id": "#/properties/containers/items/properties/args/item", + "type": "string", + "title": "The Command Arguement Item", + "default": "-c", + "examples": [ + "-c" + ] + } ] } }