Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 9aa8e3d

Browse files
committed
Support running e2e on macOS
1 parent 5839fd8 commit 9aa8e3d

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

.github/workflows/selftest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
os:
99
- ubuntu-24.04
1010
- ubuntu-24.04-arm
11+
- macos-13 # arm-based macOS runners does not support nested virt
1112
runs-on: ${{ matrix.os }}
1213
steps:
1314
- uses: actions/checkout@v4

action.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ runs:
2727
repository: jumpstarter-dev/jumpstarter
2828
ref: ${{ inputs.jumpstarter-ref }}
2929
path: jumpstarter
30+
- name: Install Docker and Kind (macOS)
31+
if: runner.os == 'macOS'
32+
shell: bash
33+
run: |
34+
brew install colima docker kind go kubectl helm gnu-sed
35+
colima start --network-address --cpu 4 --memory 8 --mount-type virtiofs
3036
- name: Deploy dex
3137
shell: bash
3238
run: |
@@ -54,12 +60,20 @@ runs:
5460
--group=system:unauthenticated
5561
5662
helm repo add dex https://charts.dexidp.io
57-
helm install --namespace dex --wait -f "$GITHUB_ACTION_PATH"/dex.values.yaml dex dex/dex
63+
helm install --namespace dex --wait --timeout 20m -f "$GITHUB_ACTION_PATH"/dex.values.yaml dex dex/dex
64+
65+
if [[ "$(uname)" == "Darwin" ]]; then
66+
echo "192.168.65.2 dex.dex.svc.cluster.local" | sudo tee -a /etc/hosts
67+
gsed -i 's|$("${SCRIPT_DIR}"/get_ext_ip.sh)|192.168.65.2|' ./controller/hack/deploy_with_helm.sh
68+
gsed -i 's|RETRIES=60|RETRIES=600|' ./controller/hack/deploy_with_helm.sh
5869
59-
sudo cp ca.pem /usr/local/share/ca-certificates/dex.crt
60-
sudo update-ca-certificates
70+
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ca.pem
71+
else
72+
echo "127.0.0.1 dex.dex.svc.cluster.local" | sudo tee -a /etc/hosts
6173
62-
echo "127.0.0.1 dex.dex.svc.cluster.local" | sudo tee -a /etc/hosts
74+
sudo cp ca.pem /usr/local/share/ca-certificates/dex.crt
75+
sudo update-ca-certificates
76+
fi
6377
- name: Deploy jumpstarter controller
6478
shell: bash
6579
run: |
@@ -85,6 +99,7 @@ runs:
8599
. .venv/bin/activate
86100
87101
export JUMPSTARTER_GRPC_INSECURE=1
102+
export JUMPSTARTER_FORCE_SYSTEM_CERTS=1
88103
89104
kubectl create -n default sa test-client-sa
90105
kubectl create -n default sa test-exporter-sa

0 commit comments

Comments
 (0)