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
e154bc48
Commit
e154bc48
authored
Oct 12, 2022
by
Faizan Azim
🤓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip: branch not selected fix
parent
23d70cd4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
.env
.env
+2
-1
helm_automate_script.py
helm_automate_script.py
+3
-1
No files found.
.env
View file @
e154bc48
DB_URI=sqlite:///./ilens_versions.db
DB_URI=sqlite:///./ilens_versions.db
CONFIG_MAP_VARIABLES=MONGO_URI
CONFIG_MAP_VARIABLES=MONGO_URI
HELM_REPO = https://gitlab-pm.knowledgelens.com/KnowledgeLens/Products/iLens-2.0/core/devops/helm-charts
# HELM_REPO = https://gitlab-pm.knowledgelens.com/KnowledgeLens/Products/iLens-2.0/core/devops/helm-charts
HELM_REPO = https://gitlab-pm.knowledgelens.com/Harshavardhan.C/helm-charts
GIT_USERNAME = harshavardhan.c
GIT_USERNAME = harshavardhan.c
GIT_TOKEN = FEMA6PnP63fJCs6DrtZJ
GIT_TOKEN = FEMA6PnP63fJCs6DrtZJ
GLOBAL_VARIABLES_FILE=ilens-global-configmap.yml
GLOBAL_VARIABLES_FILE=ilens-global-configmap.yml
helm_automate_script.py
View file @
e154bc48
...
@@ -85,6 +85,8 @@ def push_helm_deployments(repo_link: str, private_token: str, branch: str, final
...
@@ -85,6 +85,8 @@ def push_helm_deployments(repo_link: str, private_token: str, branch: str, final
pl
=
pl
[
0
]
pl
=
pl
[
0
]
commit_actions
=
[]
commit_actions
=
[]
files_list
=
os
.
listdir
(
final_helm_path
)
files_list
=
os
.
listdir
(
final_helm_path
)
branches
=
pl
.
branches
.
list
()
if
not
files_list
:
if
not
files_list
:
logging
.
debug
(
'Files not found for pushing to git.'
)
logging
.
debug
(
'Files not found for pushing to git.'
)
for
file
in
files_list
:
for
file
in
files_list
:
...
@@ -211,7 +213,7 @@ if __name__ == '__main__':
...
@@ -211,7 +213,7 @@ if __name__ == '__main__':
if
k
.
lower
()
in
{
'port'
,
'service_port'
,
'module_port'
}
and
v
.
get
(
"value"
):
if
k
.
lower
()
in
{
'port'
,
'service_port'
,
'module_port'
}
and
v
.
get
(
"value"
):
global_config_vars
[
"SERVICE_PORT"
]
=
v
[
'value'
]
global_config_vars
[
"SERVICE_PORT"
]
=
v
[
'value'
]
continue
continue
if
"valueFrom"
in
existing_env_variables
.
get
(
k
):
if
"valueFrom"
in
existing_env_variables
.
get
(
k
,
[]
):
existing_data
[
'deployment'
][
'environmentVar'
]
.
append
(
existing_env_variables
[
k
])
existing_data
[
'deployment'
][
'environmentVar'
]
.
append
(
existing_env_variables
[
k
])
else
:
else
:
existing_data
[
'deployment'
][
'environmentVar'
]
.
append
(
v
)
existing_data
[
'deployment'
][
'environmentVar'
]
.
append
(
v
)
...
...
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