Skip to content

Commit

Permalink
Add tigera-operator namespace chart to chartpress
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Nov 19, 2023
1 parent c666596 commit a41b617
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ jobs:
- name: "Stage 1: Install and setup helm ${{ env.HELM_VERSION }}"
run: |
curl -sf https://raw.githubusercontent.com/helm/helm/HEAD/scripts/get-helm-3 | DESIRED_VERSION=${HELM_VERSION} bash
for d in ./mybinder/ ./system-charts/*/; do
for d in ./mybinder*/; do
helm dependency update "$d"
done
Expand Down Expand Up @@ -310,7 +310,7 @@ jobs:
- name: "Stage 1: Install and setup helm ${{ env.HELM_VERSION }}"
run: |
curl -sf https://raw.githubusercontent.com/helm/helm/HEAD/scripts/get-helm-3 | DESIRED_VERSION=${HELM_VERSION} bash
for d in ./mybinder/ ./system-charts/*/; do
for d in ./mybinder*/; do
helm dependency update "$d"
done
Expand Down
9 changes: 3 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ __pycache__
config/common/datacenter-*.yaml
secrets/banned_hosts.txt
secrets/config/common/bans.yaml
system-charts/*/charts
system-charts/*/requirements.lock
system-charts/*/Chart.lock
mybinder/charts
mybinder/requirements.lock
mybinder/Chart.lock
mybinder*/charts
mybinder*/requirements.lock
mybinder*/Chart.lock

.ipynb_checkpoints

Expand Down
1 change: 1 addition & 0 deletions chartpress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ charts:
tc-init:
valuesPath: binderhub.jupyterhub.singleuser.initContainers.0.image
- name: mybinder-kube-system
- name: mybinder-tigera-operator
10 changes: 5 additions & 5 deletions deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,11 @@ def deploy_system_charts(release, name=None, dry_run=False):
if not name:
name = release

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

for ns in namespaces:
log_name = f"mybinder-{ns} {release}"
for chart in charts:
log_name = f"{chart} {release}"
ns = chart[9:]

config_files = get_config_files(release, config_dir=f"system-config/{ns}")
if not config_files:
Expand All @@ -358,7 +358,7 @@ def deploy_system_charts(release, name=None, dry_run=False):
f"--namespace={ns}",
"--create-namespace",
name,
f"system-charts/{ns}",
chart,
]
for config_file in config_files:
helm.extend(["-f", config_file])
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a41b617

Please sign in to comment.