Skip to content

Commit 5812fce

Browse files
authored
Merge pull request #2833 from manics/aws-curvenote-tigera-chartpress
curvenote: Add tigera-operator namespace chart to chartpress
2 parents c666596 + a41b617 commit 5812fce

File tree

8 files changed

+11
-13
lines changed

8 files changed

+11
-13
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ jobs:
151151
- name: "Stage 1: Install and setup helm ${{ env.HELM_VERSION }}"
152152
run: |
153153
curl -sf https://raw.githubusercontent.com/helm/helm/HEAD/scripts/get-helm-3 | DESIRED_VERSION=${HELM_VERSION} bash
154-
for d in ./mybinder/ ./system-charts/*/; do
154+
for d in ./mybinder*/; do
155155
helm dependency update "$d"
156156
done
157157
@@ -310,7 +310,7 @@ jobs:
310310
- name: "Stage 1: Install and setup helm ${{ env.HELM_VERSION }}"
311311
run: |
312312
curl -sf https://raw.githubusercontent.com/helm/helm/HEAD/scripts/get-helm-3 | DESIRED_VERSION=${HELM_VERSION} bash
313-
for d in ./mybinder/ ./system-charts/*/; do
313+
for d in ./mybinder*/; do
314314
helm dependency update "$d"
315315
done
316316

.gitignore

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ __pycache__
88
config/common/datacenter-*.yaml
99
secrets/banned_hosts.txt
1010
secrets/config/common/bans.yaml
11-
system-charts/*/charts
12-
system-charts/*/requirements.lock
13-
system-charts/*/Chart.lock
14-
mybinder/charts
15-
mybinder/requirements.lock
16-
mybinder/Chart.lock
11+
mybinder*/charts
12+
mybinder*/requirements.lock
13+
mybinder*/Chart.lock
1714

1815
.ipynb_checkpoints
1916

chartpress.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ charts:
1111
tc-init:
1212
valuesPath: binderhub.jupyterhub.singleuser.initContainers.0.image
1313
- name: mybinder-kube-system
14+
- name: mybinder-tigera-operator

deploy.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,11 @@ def deploy_system_charts(release, name=None, dry_run=False):
336336
if not name:
337337
name = release
338338

339-
charts = glob.glob("system-charts/*/Chart.yaml")
340-
namespaces = [c.split("/")[1] for c in charts]
339+
charts = ["mybinder-kube-system", "mybinder-tigera-operator"]
341340

342-
for ns in namespaces:
343-
log_name = f"mybinder-{ns} {release}"
341+
for chart in charts:
342+
log_name = f"{chart} {release}"
343+
ns = chart[9:]
344344

345345
config_files = get_config_files(release, config_dir=f"system-config/{ns}")
346346
if not config_files:
@@ -358,7 +358,7 @@ def deploy_system_charts(release, name=None, dry_run=False):
358358
f"--namespace={ns}",
359359
"--create-namespace",
360360
name,
361-
f"system-charts/{ns}",
361+
chart,
362362
]
363363
for config_file in config_files:
364364
helm.extend(["-f", config_file])

0 commit comments

Comments
 (0)