Fixed bug when k8s profile is created for default k8s version
[ccsdk/cds.git] / components / model-catalog / resource-dictionary / starter-dictionary / k8s-rb-profile-k8s-version.json
diff --git a/components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-profile-k8s-version.json b/components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-profile-k8s-version.json
new file mode 100644 (file)
index 0000000..2b8eef5
--- /dev/null
@@ -0,0 +1,39 @@
+{
+    "tags": "k8s, cnf, profile, k8s version, k8s-rb-profile-k8s-version",
+    "name": "k8s-rb-profile-k8s-version",
+    "property": {
+        "description": "Profile k8s version used in multicloud/k8s plugin",
+        "type": "string"
+    },
+    "group": "default",
+    "updated-by": "Rajewski, Lukasz <lukasz.rajewski@orange.com>",
+    "sources": {
+        "input": {
+            "type": "source-input"
+        },
+        "default": {
+            "type": "source-default",
+            "properties": {}
+        },
+        "sdnc": {
+            "type": "source-rest",
+            "properties": {
+                "verb": "GET",
+                "type": "JSON",
+                "url-path": "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/k8s-rb-profile-k8s-version",
+                "path": "/param/0/value",
+                "input-key-mapping": {
+                    "service-instance-id": "service-instance-id",
+                    "vnf-id": "vnf-id"
+                },
+                "output-key-mapping": {
+                    "k8s-rb-profile-k8s-version": "value"
+                },
+                "key-dependencies": [
+                    "service-instance-id",
+                    "vnf-id"
+                ]
+            }
+        }
+    }
+}