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
83c7a4bf
Commit
83c7a4bf
authored
Oct 13, 2022
by
harshavardhan.c
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enh: changed the mysql branch push to client name.
parent
fe62e06e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
helm_automate_script.py
helm_automate_script.py
+4
-2
No files found.
helm_automate_script.py
View file @
83c7a4bf
...
...
@@ -56,7 +56,7 @@ def push_helm_deployments(repo_link: str, private_token: str, branch: str, final
for
file
in
files_list
:
_action
=
{
'action'
:
'update'
,
'file_path'
:
os
.
path
.
join
(
HELM_PATH
,
file
)
,
'file_path'
:
f
"{HELM_PATH}/{file}"
,
'content'
:
open
(
f
'{final_helm_path}/{file}'
)
.
read
()
}
commit_actions
.
append
(
_action
)
...
...
@@ -195,7 +195,8 @@ if __name__ == '__main__':
helm_out_file_path
=
helm_out_file_path
,
global_config_data
=
global_config_data
,
module_name
=
_file
.
split
(
".yml"
)[
0
])
push_helm_deployments
(
helm_repo
,
git_access_token
,
_branch
,
final_helm_path
=
OUTPUT_PATH
,
base_path
=
helm_path
)
push_helm_deployments
(
helm_repo
,
git_access_token
,
_client_name
,
final_helm_path
=
OUTPUT_PATH
,
base_path
=
helm_path
)
except
Exception
as
e
:
logging
.
exception
(
f
"Exception Occurred while processing the Helm-Script Preparation {e.args}"
)
...
...
@@ -203,3 +204,4 @@ if __name__ == '__main__':
# shutil.rmtree(HELM_STORE_PATH)
shutil
.
rmtree
(
HELM_TEMP_PATH
)
shutil
.
rmtree
(
GENERAL_TEMP_PATH
)
shutil
.
rmtree
(
OUTPUT_PATH
)
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