aboutsummaryrefslogtreecommitdiffstats
path: root/heat/vFW_CNF_CDS/templates/cba/Definitions/vFW_CNF_CDS.json
diff options
context:
space:
mode:
authorLukasz Rajewski <lukasz.rajewski@orange.com>2020-01-01 23:09:26 +0100
committerLukasz Rajewski <lukasz.rajewski@orange.com>2020-01-08 11:12:22 +0100
commit666c1371b11799b88658b5e2ac3f77f1b01d2231 (patch)
tree2f53b114885247736615f89d23202f3126536ede /heat/vFW_CNF_CDS/templates/cba/Definitions/vFW_CNF_CDS.json
parentbc6e714e001a8c61b06709c61b187d4e3dd22aac (diff)
K8s Profile Upload
Modification of vFW CNF CBA package to upload K8s profile automatically just after resource assigment phase. Profile is created for each vf-module and in this version only upload of static profile is possible. Profile files must be included in the CBA in Templates/k8s-profiles folder. Profile file must be valid tar.gz file accepted by multicloud-k8s plugin. Change-Id: I30c268e9867fbb86d997b2091ce2eed204a7df2a Issue-ID: INT-1406 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Diffstat (limited to 'heat/vFW_CNF_CDS/templates/cba/Definitions/vFW_CNF_CDS.json')
-rw-r--r--heat/vFW_CNF_CDS/templates/cba/Definitions/vFW_CNF_CDS.json59
1 files changed, 58 insertions, 1 deletions
diff --git a/heat/vFW_CNF_CDS/templates/cba/Definitions/vFW_CNF_CDS.json b/heat/vFW_CNF_CDS/templates/cba/Definitions/vFW_CNF_CDS.json
index 405df54e..c4b6516d 100644
--- a/heat/vFW_CNF_CDS/templates/cba/Definitions/vFW_CNF_CDS.json
+++ b/heat/vFW_CNF_CDS/templates/cba/Definitions/vFW_CNF_CDS.json
@@ -32,6 +32,18 @@
"username" : "admin",
"password" : "admin"
},
+ "multicloud-k8s-api" : {
+ "type" : "basic-auth",
+ "username" : "admin",
+ "password" : "admin",
+ "url" : "http://multicloud-k8s:9015"
+ },
+ "profile-upload-properties" : {
+ "resolution-key" : {
+ "get_input" : "resolution-key"
+ },
+ "api-access": "*multicloud-k8s-api"
+ },
"config-deploy-properties" : {
"resolution-key" : {
"get_input" : "resolution-key"
@@ -50,7 +62,24 @@
"steps" : {
"resource-assignment" : {
"description" : "Resource Assign Workflow",
- "target" : "resource-assignment"
+ "target" : "resource-assignment",
+ "activities": [
+ {
+ "call_operation": "ResourceResolutionComponent.process"
+ }
+ ],
+ "on_success": [
+ "profile-upload"
+ ]
+ },
+ "profile-upload" : {
+ "description" : "Upload K8s Profile",
+ "target" : "profile-upload",
+ "activities": [
+ {
+ "call_operation": "ComponentScriptExecutor.process"
+ }
+ ]
}
},
"inputs" : {
@@ -61,6 +90,13 @@
"type" : "string"
}
},
+ "resolution-key" : {
+ "required" : false,
+ "type" : "string",
+ "entry_schema" : {
+ "type" : ""
+ }
+ },
"resource-assignment-properties" : {
"description" : "Dynamic PropertyDefinition for workflow(resource-assignment).",
"required" : true,
@@ -111,6 +147,10 @@
"artifact-prefix-names" : {
"get_input" : "template-prefix"
}
+ },
+ "store-result": true,
+ "resolution-key": {
+ "get_input" : "resolution-key"
}
}
}
@@ -159,6 +199,23 @@
}
}
},
+ "profile-upload" : {
+ "type" : "component-script-executor",
+ "interfaces" : {
+ "ComponentScriptExecutor" : {
+ "operations" : {
+ "process" : {
+ "inputs" : {
+ "script-type" : "kotlin",
+ "script-class-reference" : "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.K8sProfileUpload",
+ "instance-dependencies" : [ ],
+ "dynamic-properties" : "*profile-upload-properties"
+ }
+ }
+ }
+ }
+ }
+ },
"config-deploy-process" : {
"type" : "component-resource-resolution",
"interfaces" : {