Skip to content

Commit ae76523

Browse files
authored
Merge pull request #43 from epics-containers/dev
add getting of chart libraries
2 parents a8820fe + a62e66e commit ae76523

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/epics_containers_cli/ioc/helm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def _do_deploy(self, config_folder: Path):
9999
# add the config folder to the helm chart
100100
self.bl_config_folder.symlink_to(config_folder)
101101

102+
# get library charts
103+
run_command(f"helm dependency update {self.bl_chart_folder}", interactive=False)
102104
# use helm to install the chart
103105
self._install(
104106
values=values_path,

tests/data/ioc.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ delete:
1313
rsp: True
1414

1515
template:
16+
- cmd: helm dependency update /tmp/ec_tests/beamline-chart
17+
rsp: ""
1618
- cmd: 'bash -c "helm template bl45p-ea-ioc-01 /tmp/ec_tests/beamline-chart --version
1719
20.*--namespace bl45p -f \/.*\/data\/iocs\/bl45p-ea-ioc-01\/values.yaml.*'
1820
rsp: |
@@ -22,13 +24,17 @@ template:
2224
2325
# TODO blank response is that OK?
2426
deploy_local:
27+
- cmd: helm dependency update /tmp/ec_tests/beamline-chart
28+
rsp: ""
2529
- cmd: 'bash -c "helm upgrade --install bl45p-ea-ioc-01 /tmp/ec_tests/beamline-chart
2630
--version 20.*--namespace bl45p -f \/.*\/data\/iocs\/bl45p-ea-ioc-01\/values.yaml.*'
2731
rsp: ""
2832

2933
deploy:
3034
- cmd: git clone https://github.com/epics-containers/bl45p /tmp/ec_tests --depth=1 --single-branch --branch=2.0
3135
rsp: ""
36+
- cmd: helm dependency update /tmp/ec_tests/beamline-chart
37+
rsp: ""
3238
- cmd: 'bash -c "helm upgrade --install bl45p-ea-ioc-01 /tmp/ec_tests/beamline-chart --version 2.0 --namespace bl45p -f /tmp/ec_tests/iocs/bl45p-ea-ioc-01/values.yaml.*'
3339
rsp: ""
3440

0 commit comments

Comments
 (0)