K8s Profile Upload
[demo.git] / heat / vFW_CNF_CDS / templates / cba / Definitions / vFW_CNF_CDS.json
index 405df54..c4b6516 100644 (file)
       "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"
         "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" : {
               "type" : "string"
             }
           },
+          "resolution-key" : {
+            "required" : false,
+            "type" : "string",
+            "entry_schema" : {
+              "type" : ""
+            }
+          },
           "resource-assignment-properties" : {
             "description" : "Dynamic PropertyDefinition for workflow(resource-assignment).",
             "required" : true,
                   "artifact-prefix-names" : {
                     "get_input" : "template-prefix"
                   }
+                },
+                "store-result": true,
+                "resolution-key": {
+                  "get_input" : "resolution-key"
                 }
               }
             }
           }
         }
       },
+      "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" : {