diff --git a/.github/workflows/k8s.yml b/.github/workflows/k8s.yml index aaeef6c..54a4e9d 100644 --- a/.github/workflows/k8s.yml +++ b/.github/workflows/k8s.yml @@ -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: | @@ -45,14 +45,17 @@ 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 @@ -60,16 +63,19 @@ jobs: 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