Enable IP address for the container registry in the xApp descriptor file 54/7754/1
authorAlexandre Huff <alexandrehuff@utfpr.edu.br>
Tue, 15 Feb 2022 21:20:10 +0000 (18:20 -0300)
committerAlexandre Huff <alexandrehuff@utfpr.edu.br>
Tue, 15 Feb 2022 21:20:10 +0000 (18:20 -0300)
Currently, appmgr does not allow onboarding xApp images that are
available in image registries pointed by IP addresses.
This change enables setting up an IPv4 address for the container
registry in the xApp descriptor file.

Issue-ID: RIC-884

Signed-off-by: Alexandre Huff <alexandrehuff@utfpr.edu.br>
Change-Id: Ie214cb460e791557333fe16d01848993c1f6b546

xapp_orchestrater/dev/xapp_onboarder/xapp_onboarder/helm_controller/xapp_schema.py

index f3f15b0..396f0bd 100644 (file)
@@ -95,7 +95,7 @@ schema = {
                                 "examples": [
                                     "nexus3.o-ran-sc.org:10002"
                                 ],
-                                "pattern": "^[A-Za-z0-9\\.-]{1,}\\.[A-Za-z]{1,}(?:\\:\\d+)?$"
+                                "pattern": "^([A-Za-z0-9\\.-]{1,}\\.[A-Za-z]{1,}|((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))(?:\\:\\d+)?$"
                             },
                             "name": {
                                 "$id": "#/properties/containers/items/properties/image/properties/name",