Skip to content

Commit

Permalink
fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sl1pm4t committed Dec 6, 2023
1 parent a2c8d0d commit 0beac84
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: helm-lint-dex-k8s-auth
run: |
helmv3 lint charts/dex-k8s-authenticator
helm lint charts/dex-k8s-authenticator
- name: helm-template
run: |
Expand All @@ -45,31 +45,37 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: setup-kind
uses: engineerd/setup-kind@v0.5.0
uses: helm/kind-action@v1.5.0
with:
name: kind
cluster_name: kind

- name: build-ci-image
run: |
docker build -t sl1pm4t/dex-k8s-authenticator:${GITHUB_SHA} .
kind load docker-image sl1pm4t/dex-k8s-authenticator:${GITHUB_SHA}
- name: update-helm-values
run: |
set -x
export NODE_IP=$(kubectl get nodes -o jsonpath="{.items[0].status.addresses[0].address}")
export CI_TAG=$GITHUB_SHA
envsubst < ./tests/e2e/helm/dex-overrides.yaml > /tmp/dex-overrides.yaml
envsubst < ./tests/e2e/helm/dex-k8s-auth-overrides.yaml > /tmp/dex-k8s-auth-overrides.yaml
- name: install-dex
run: |
helm install -f /tmp/dex-overrides.yaml dex ./charts/dex
kubectl describe deployment dex
kubectl rollout status deploy dex -w
- name: install-dex-auth
run: |
helm install -f /tmp/dex-k8s-auth-overrides.yaml dex-k8s-authenticator ./charts/dex-k8s-authenticator
kubectl describe deployment dex-k8s-authenticator
kubectl rollout status deploy dex-k8s-authenticator -w
- name: test
run: |
kubectl get pods
Expand Down

0 comments on commit 0beac84

Please sign in to comment.