Skip to content

Commit

Permalink
test the zrok chart if it changes
Browse files Browse the repository at this point in the history
  • Loading branch information
qrkourier committed Jan 11, 2024
1 parent 68fcbcc commit 510ae70
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/miniziti.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- 'charts/ziti-router/**'
- 'charts/ziti-console/**'
- 'charts/httpbin/**'
- 'charts/zrok/**'

# cancel older, redundant runs of same workflow on same branch
concurrency:
Expand All @@ -27,6 +28,10 @@ jobs:
with:
start-args: --profile miniziti

- name: Find minikube IP address
id: minikube_ip
run: echo "minikube_ip=$(minikube ip)" >> $GITHUB_OUTPUT

- name: install ziti cli
uses: supplypike/setup-bin@v3
with:
Expand All @@ -50,6 +55,13 @@ jobs:
- name: Upgrade miniziti with charts from this branch
run: miniziti start --no-hosts --verbose --charts ./charts

- name: Find the ziti admin password
id: ziti_pwd
run: |
miniziti kubectl get secrets "ziti-controller-admin-secret" \
--output go-template='{{index .data "admin-password" | base64decode }}' \
| xargs -IZITI_PWD echo "ziti_pwd=ZITI_PWD" >> $GITHUB_OUTPUT
- name: Enroll client identity
run: >
ziti edge enroll
Expand Down Expand Up @@ -82,6 +94,26 @@ jobs:
exit 1
fi
- name: Install zrok chart
shell: bash
run: >
helm upgrade
--install
--namespace zrok --create-namespace
--set ziti.password="${{ steps.ziti_pwd.outputs.ziti_pwd }}"
--set controller.ingress.hosts[0].host=ctrl.zrok.${{ steps.minikube_ip.outputs.minikube_ip }}.sslip.io
--set frontend.ingress.hosts[0].host=share.zrok.${{ steps.minikube_ip.outputs.minikube_ip }}.sslip.io
--values=./charts/zrok/minimal-values.yml
zrok ./charts/zrok
- name: Wait for the zrok API to become available
uses: iFaxity/wait-on-action@v1
with:
resource: http://ctrl.zrok.${{ steps.minikube_ip.outputs.minikube_ip }}/api/v1/version
delay: 1000
interval: 1000
timeout: 10000

- name: Print the proxy log
if: always()
run: cat /tmp/miniziti-client.log
13 changes: 10 additions & 3 deletions charts/zrok/minimal-values.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@

# these minimal input values serve the GitHub Actions workflow miniziti.yml which installs this chart in a minikube
# cluster that is also running a minimal Ziti network, scripted by miniziti.bash

controller:
ingress:
enabled: true
scheme: http
className: nginx
hosts: ["ctrl.zrok.192.168.49.2.sslip.io"]
hosts: []
# hosts: ["ctrl.zrok.192.168.49.2.sslip.io"]

frontend:
ingress:
enabled: true
scheme: http
className: nginx
hosts: ["share.zrok.192.168.49.2.sslip.io"]
hosts: []
# hosts: ["share.zrok.192.168.49.2.sslip.io"]

ziti:
advertisedHost: ziti-controller-client.miniziti.svc.cluster.local
advertisedHost:
# advertisedHost: ziti-controller-client.miniziti.svc.cluster.local

0 comments on commit 510ae70

Please sign in to comment.