Skip to content

Commit 5d93995

Browse files
authored
Merge pull request #73 from DataKitchen/add-obs-svc-values
feat: Allow the user to specify a values file for the Observability s…
2 parents 59e4c75 + 94e96f6 commit 5d93995

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

dk-installer.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,6 +1209,7 @@ def on_action_fail(self, action, args):
12091209
class ObsHelmInstallServicesStep(HelmInstallStep):
12101210
label = "Installing helm charts for supporting services"
12111211
chart_info = HELM_SERVICES
1212+
values_arg = "svc_values"
12121213

12131214

12141215
class ObsHelmInstallPlatformStep(HelmInstallStep):
@@ -1283,6 +1284,7 @@ def on_action_success(self, action, args):
12831284
self._collect_images_sha(action, args)
12841285

12851286
def on_action_fail(self, action, args):
1287+
super().on_action_fail(action, args)
12861288
self._collect_images_sha(action, args)
12871289

12881290
def _collect_images_sha(self, action, args):
@@ -1426,11 +1428,17 @@ def get_parser(self, sub_parsers):
14261428
"Defaults to '%(default)s'"
14271429
),
14281430
)
1431+
parser.add_argument(
1432+
"--svc-values",
1433+
type=str,
1434+
action="store",
1435+
help="Override values for supporting services Helm install. Specify path to a YAML file or URL.",
1436+
)
14291437
parser.add_argument(
14301438
"--app-values",
14311439
type=str,
14321440
action="store",
1433-
help="Override values for Helm app install. Specify path to a YAML file or URL.",
1441+
help="Override values for app Helm install. Specify path to a YAML file or URL.",
14341442
)
14351443
parser.add_argument(
14361444
"--docker-username",

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ def args_mock():
181181
ns.driver = "docker"
182182
ns.memory = "4096m"
183183
ns.helm_timeout = 10
184+
ns.svc_values = None
184185
ns.app_values = None
185186
ns.docker_username = None
186187
ns.docker_password = None

0 commit comments

Comments
 (0)