Commit 6ba91763 authored by harshavardhan.c's avatar harshavardhan.c

enh: Code enhancements while preparing the helm-chart.

parent cc75e34f
......@@ -181,6 +181,7 @@ if __name__ == '__main__':
celery_yml_path = os.path.join(base_helm_directory_path, f'{_module}-celery.yml')
if os.path.exists(celery_yml_path):
helm_out_file_path = os.path.join(OUTPUT_PATH, f'{_module}-celery.yml')
template_file = os.path.join(template_path, f'{_module}-celery.yml')
helm_handler.create_helm_deployment_file(template_yml_path=celery_yml_path, image_tag=image_url,
module_env_variables=module_env_variables,
template_file=template_file, template_path=template_path,
......
......@@ -51,8 +51,9 @@ class GitHandler:
try:
base_url = os.environ.get("GIT_BASE_URL", default=default_link)
gl = gitlab.Gitlab(url=base_url, private_token=self.access_token)
pl = gl.projects.list(search=module_name, group="/KnowledgeLens/Products/iLens-2.0")
return pl[0].web_url if pl else ''
pl = gl.groups.list(search="iLens-2.0")[0].projects.list(search=module_name,
include_subgroups=True)
return pl[-1].web_url if pl else ''
except Exception as e:
logging.exception(f"Exception occurred while fetching repo details - {e.args}")
return False
......
import os
import ruamel
import ruamel.yaml
from scripts.logging import logging
......
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