File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
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
You can’t perform that action at this time.
0 commit comments