|
27 | 27 | repository: jumpstarter-dev/jumpstarter |
28 | 28 | ref: ${{ inputs.jumpstarter-ref }} |
29 | 29 | 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 |
30 | 36 | - name: Deploy dex |
31 | 37 | shell: bash |
32 | 38 | run: | |
@@ -54,12 +60,20 @@ runs: |
54 | 60 | --group=system:unauthenticated |
55 | 61 |
|
56 | 62 | 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 |
58 | 69 |
|
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 |
61 | 73 |
|
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 |
63 | 77 | - name: Deploy jumpstarter controller |
64 | 78 | shell: bash |
65 | 79 | run: | |
|
85 | 99 | . .venv/bin/activate |
86 | 100 |
|
87 | 101 | export JUMPSTARTER_GRPC_INSECURE=1 |
| 102 | + export JUMPSTARTER_FORCE_SYSTEM_CERTS=1 |
88 | 103 |
|
89 | 104 | kubectl create -n default sa test-client-sa |
90 | 105 | kubectl create -n default sa test-exporter-sa |
|
0 commit comments