Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Import API
Commits
f833ce8c
Verified
Commit
f833ce8c
authored
Nov 22, 2021
by
Sebastian Schüpbach
Browse files
fix helm values file integration
parent
19e099ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
import_api_app/helpers/delete_service.py
View file @
f833ce8c
...
@@ -81,9 +81,11 @@ class DeleteService:
...
@@ -81,9 +81,11 @@ class DeleteService:
job_args
.
extend
([
'--dry-run'
,
set_values
[
'sessionId'
]])
job_args
.
extend
([
'--dry-run'
,
set_values
[
'sessionId'
]])
else
:
else
:
job_args
.
append
(
set_values
[
'sessionId'
])
job_args
.
append
(
set_values
[
'sessionId'
])
job_args
=
{
'jobArgs'
:
' '
.
join
(
job_args
)}
job_args
=
{
'jobArgs'
:
"'"
+
"' '"
.
join
(
job_args
)
+
"'"
}
path_to_charts
=
os
.
path
.
join
(
self
.
root_path
,
"charts"
,
"deletion-marker"
)
cp
=
self
.
helm
.
install
(
# noqa: F841
cp
=
self
.
helm
.
install
(
# noqa: F841
chart
=
os
.
path
.
join
(
self
.
root_path
,
"charts"
,
'dd-marker-prod'
),
chart
=
path_to_charts
,
values_file
=
os
.
path
.
join
(
path_to_charts
,
"helm-values"
,
"dd-marker-"
+
os
.
getenv
(
"ENV"
,
""
)
+
".yaml"
),
name
=
set_values
[
'sessionId'
]
+
'-deleter'
,
name
=
set_values
[
'sessionId'
]
+
'-deleter'
,
namespace
=
self
.
namespace
,
namespace
=
self
.
namespace
,
set_values
=
job_args
,
set_values
=
job_args
,
...
...
Write
Preview
Supports
Markdown
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