xpanse icon indicating copy to clipboard operation
xpanse copied to clipboard

ServiceConfigurationParameter - Extend the parameter with resource information

Open swaroopar opened this issue 7 months ago • 1 comments

For each ServiceConfigurationParameter, it is necessary to add the resource information to which the configuration parameter belongs to. Using this, we can decide on which VM we must run the configuration change

  • [ ] add a new string field called managedBy to ServiceConfigurationParameter class
  • [ ] Add validation to check if the resource name provided in the configOn field is correct. This must be validated as part of the service registration and update.
  • [ ] Add a new method to Deployer interface - GetResourcesInServiceDeployment.
  • [ ] Return map of resource name and resource type. We can consider using hcl4j to parse the HCL file.
  • [ ] Use this method to validate the service configuration parameters.

for the example below, resource name is "kafka-broker" and type is "huaweicloud_compute_instance" and resource name is

resource "huaweicloud_compute_instance" "kafka-broker" {}

swaroopar avatar Jul 11 '24 09:07 swaroopar