Commit 0d06cafd authored by harshavardhan.c's avatar harshavardhan.c

Dev: Helm Chart enhancements in order to support data-processor modules for...

Dev: Helm Chart enhancements in order to support data-processor modules for iot data-processor modules..
parent 7bb92cf1
......@@ -5,4 +5,4 @@ HELM_REPO = https://gitlab-pm.knowledgelens.com/KnowledgeLens/Products/iLens-2.0
#HELM_REPO = https://gitlab-pm.knowledgelens.com/gurusrinadh.dasari/helm-charts.git
GIT_USERNAME = harshavardhan.c
GIT_TOKEN = FEMA6PnP63fJCs6DrtZJ
GLOBAL_VARIABLES_FILE=ilens-env-spec-variables.yml
\ No newline at end of file
GLOBAL_VARIABLES_FILE=ilens-env-spec-variables.yml
......@@ -75,13 +75,13 @@ class HelmVersionUpgrade:
if not os.path.exists(template_path):
os.makedirs(template_path)
for _module in _module_names:
if _module == ModuleConstants.IOT_DATA_PROCESSOR:
helm_out_file_path = os.path.join(output_path, f'{_module}.yml')
if _module in ModuleConstants.IOT_DATA_PROCESSOR:
_module = ModuleConstants.IOT_DATA_PROCESSOR_MODULE
module_path = os.path.join(general_temp_path)
module_path = os.path.join(module_path, _module)
if not os.path.exists(module_path):
os.makedirs(module_path)
helm_out_file_path = os.path.join(output_path, f'{_module}.yml')
if os.path.exists(helm_out_file_path):
logging.debug(f"Helm Deployment File found for selected the module {_module}")
continue
......
......@@ -61,7 +61,7 @@ class EnvironmentVariables:
class _ModuleConstants(BaseSettings):
IOT_DATA_PROCESSOR: Optional[str] = "mqtt-data-processor-worker"
IOT_DATA_PROCESSOR: Optional[list] = ["mqtt-data-processor-worker", "iot-data-processor-worker"]
IOT_DATA_PROCESSOR_MODULE: Optional[str] = "data-processor-worker"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment