Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
Helm-Automation-Script
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
harshavardhan.c
Helm-Automation-Script
Commits
6ba91763
Commit
6ba91763
authored
Oct 12, 2022
by
harshavardhan.c
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enh: Code enhancements while preparing the helm-chart.
parent
cc75e34f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
helm_automate_script.py
helm_automate_script.py
+1
-0
scripts/core/git_handler.py
scripts/core/git_handler.py
+3
-2
scripts/utils/common_utils.py
scripts/utils/common_utils.py
+1
-1
No files found.
helm_automate_script.py
View file @
6ba91763
...
@@ -181,6 +181,7 @@ if __name__ == '__main__':
...
@@ -181,6 +181,7 @@ if __name__ == '__main__':
celery_yml_path
=
os
.
path
.
join
(
base_helm_directory_path
,
f
'{_module}-celery.yml'
)
celery_yml_path
=
os
.
path
.
join
(
base_helm_directory_path
,
f
'{_module}-celery.yml'
)
if
os
.
path
.
exists
(
celery_yml_path
):
if
os
.
path
.
exists
(
celery_yml_path
):
helm_out_file_path
=
os
.
path
.
join
(
OUTPUT_PATH
,
f
'{_module}-celery.yml'
)
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
,
helm_handler
.
create_helm_deployment_file
(
template_yml_path
=
celery_yml_path
,
image_tag
=
image_url
,
module_env_variables
=
module_env_variables
,
module_env_variables
=
module_env_variables
,
template_file
=
template_file
,
template_path
=
template_path
,
template_file
=
template_file
,
template_path
=
template_path
,
...
...
scripts/core/git_handler.py
View file @
6ba91763
...
@@ -51,8 +51,9 @@ class GitHandler:
...
@@ -51,8 +51,9 @@ class GitHandler:
try
:
try
:
base_url
=
os
.
environ
.
get
(
"GIT_BASE_URL"
,
default
=
default_link
)
base_url
=
os
.
environ
.
get
(
"GIT_BASE_URL"
,
default
=
default_link
)
gl
=
gitlab
.
Gitlab
(
url
=
base_url
,
private_token
=
self
.
access_token
)
gl
=
gitlab
.
Gitlab
(
url
=
base_url
,
private_token
=
self
.
access_token
)
pl
=
gl
.
projects
.
list
(
search
=
module_name
,
group
=
"/KnowledgeLens/Products/iLens-2.0"
)
pl
=
gl
.
groups
.
list
(
search
=
"iLens-2.0"
)[
0
]
.
projects
.
list
(
search
=
module_name
,
return
pl
[
0
]
.
web_url
if
pl
else
''
include_subgroups
=
True
)
return
pl
[
-
1
]
.
web_url
if
pl
else
''
except
Exception
as
e
:
except
Exception
as
e
:
logging
.
exception
(
f
"Exception occurred while fetching repo details - {e.args}"
)
logging
.
exception
(
f
"Exception occurred while fetching repo details - {e.args}"
)
return
False
return
False
...
...
scripts/utils/common_utils.py
View file @
6ba91763
import
os
import
os
import
ruamel
import
ruamel
.yaml
from
scripts.logging
import
logging
from
scripts.logging
import
logging
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment