diff options
author | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2021-03-24 19:01:34 +0100 |
---|---|---|
committer | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2021-03-24 23:41:58 +0000 |
commit | 6f16d86c4e272c863279f78997078ee5d0d800fc (patch) | |
tree | eff72d4b8c134e5dcbda76c86dbe9eb2739933d4 /components | |
parent | 6adae936bdb63a13d05a491d1c800add80f7bb0e (diff) |
Fixed bug when k8s profile is created for default k8s version
Fixed bug when k8s profile is created for default k8s version
Issue-ID: CCSDK-3239
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: Ibc0c8a6057b4b9eef3beb1821093b935f3b2e53b
Diffstat (limited to 'components')
2 files changed, 44 insertions, 0 deletions
diff --git a/components/model-catalog/definition-type/starter-type/node_type/component-k8s-profile-upload.json b/components/model-catalog/definition-type/starter-type/node_type/component-k8s-profile-upload.json index d7b4bb990..f98fd4eb6 100644 --- a/components/model-catalog/definition-type/starter-type/node_type/component-k8s-profile-upload.json +++ b/components/model-catalog/definition-type/starter-type/node_type/component-k8s-profile-upload.json @@ -37,6 +37,11 @@ "required": false, "type": "string" }, + "k8s-rb-profile-k8s-version": { + "description": "a K8s cluster version for the profile", + "required": false, + "type": "string" + }, "k8s-rb-profile-source": { "description": "Source (tgz/folder) for the template in CBA", "required": false, 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 index 000000000..2b8eef5cd --- /dev/null +++ b/components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-profile-k8s-version.json @@ -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" + ] + } + } + } +} |