File tree Expand file tree Collapse file tree 2 files changed +63
-8
lines changed Expand file tree Collapse file tree 2 files changed +63
-8
lines changed Original file line number Diff line number Diff line change 1+ # This workflow provides a diff of the rendered Helm chart's templates with the
2+ # latest released dev version of the chart.
3+ ---
4+ name : Helm diff
5+
6+ on :
7+ pull_request :
8+ push :
9+ workflow_dispatch :
10+
11+ jobs :
12+ diff-rendered-templates :
13+ runs-on : ubuntu-20.04
14+ steps :
15+ - uses : actions/checkout@v2
16+ with :
17+ fetch-depth : 0
18+
19+ - uses : jupyterhub/action-k3s-helm@v1
20+ with :
21+ k3s-channel : v1.19
22+ metrics-enabled : false
23+ traefik-enabled : false
24+ docker-enabled : true
25+
26+ - uses : actions/setup-python@v2
27+ with :
28+ python-version : ' 3.8'
29+ - name : Install helm diff plugin, update local chart dependencies
30+ run : |
31+ helm plugin install https://github.com/databus23/helm-diff
32+ helm dependency update ./helm-chart/binderhub
33+
34+ - name : " Install latest released dev chart"
35+ run : |
36+ UPGRADE_FROM_VERSION=$(curl -sS https://jupyterhub.github.io/helm-chart/info.json | jq -er '.binderhub.dev')
37+
38+ # NOTE: We change the directory so binderhub the chart name won't be
39+ # misunderstood as the local folder name.
40+ cd testing
41+
42+ helm install binderhub-test binderhub \
43+ --values ./k8s-binder-k8s-hub/binderhub-chart-config.yaml \
44+ --repo https://jupyterhub.github.io/helm-chart/ \
45+ --version=$UPGRADE_FROM_VERSION
46+
47+ - name : " Helm diff latest released dev chart with local chart"
48+ run : |
49+ echo "NOTE: For the helm diff, we have not updated the Chart.yaml"
50+ echo " version or image tags using chartpress."
51+ echo
52+
53+ helm diff upgrade binderhub-test helm-chart/binderhub \
54+ --values testing/k8s-binder-k8s-hub/binderhub-chart-config.yaml \
55+ --context=3
Original file line number Diff line number Diff line change @@ -107,22 +107,22 @@ jobs:
107107 --set config.BinderHub.hub_url_local=http://proxy-public \
108108 --set config.BinderHub.access_token=$GITHUB_ACCESS_TOKEN
109109
110- - name : Wait for JupyterHub to be ready
111- timeout-minutes : 10
110+ - name : Await and curl JupyterHub
112111 run : |
113112 . ci/common
114113 await_jupyterhub
115- echo "curl http://localhost:30902/hub/api/" should print the JupyterHub version
116- curl http://localhost:30902/hub/api/
117114
118- - name : Wait for BinderHub to be ready
115+ echo curl http://localhost:30902/hub/api/ should print the JupyterHub version
116+ curl http://localhost:30902/hub/api/ --max-time 5 --retry 5 --retry-delay 1 --retry-connrefused
117+
118+ - name : Await and curl BinderHub
119119 if : matrix.test == 'helm'
120- timeout-minutes : 10
121120 run : |
122121 . ci/common
123122 await_binderhub
124- echo "curl http://localhost:30901/health" to check BinderHub\'s health
125- curl http://localhost:30901/health
123+
124+ echo curl http://localhost:30901/health to check BinderHub\'s health
125+ curl http://localhost:30901/health --max-time 5 --retry 5 --retry-delay 1 --retry-connrefused
126126
127127 - name : Run main tests
128128 if : matrix.test == 'main'
You can’t perform that action at this time.
0 commit comments