Skip to content

Commit

Permalink
debug: switch to own k3d installation
Browse files Browse the repository at this point in the history
  • Loading branch information
puffitos committed Sep 26, 2023
1 parent 880af4a commit c00f8c6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 24 deletions.
37 changes: 14 additions & 23 deletions .github/workflows/end2end.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Create Cluster
uses: AbsaOSS/k3d-action@v2
with:
cluster-name: cosign-tests
k3d-version: v5.4.6
- name: Create Local Registry
- name: Install k3d
run: |
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash
k3d version
- name: Create Cluster & Registry
run: |
k3d registry create registry.localhost --port 5000
make test-create-cluster
- name: Check Cluster Nodes
run: |
kubectl get nodes
Expand Down Expand Up @@ -61,19 +60,11 @@ jobs:
make test-deploy
- name: Check Deployment
run: |
STATUS=$(kubectl -n cosignwebhook get deployment cosignwebhook -o jsonpath={.status.readyReplicas})
if [[ $STATUS -ne 1 ]]
then
echo "Deployment cosignwebhook not ready"
kubectl -n cosignwebhook get events
kubectl logs -n cosignwebhook deployment/cosignwebhook cosignwebhook
kubectl logs -n cosignwebhook deployment/cosignwebhook sccosign
kubectl logs -n cosignwebhook deployment/cosignwebhook scwebhook
kubectl describe -n cosignwebhook deployment/cosignwebhook
exit 1
else
echo "Deployment cosignwebhook OK"
fi
- name: Run End2End Tests
run: |
make test-e2e
echo "Waiting for deployment to be ready"
sleep 60
echo "Deployment cosignwebhook not ready"
kubectl -n cosignwebhook get events
kubectl describe -n cosignwebhook deployment/cosignwebhook
# - name: Run End2End Tests
# run: |
# make test-e2e
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ test-deploy:
--set image.repository=k3d-registry.localhost:5000/cosignwebhook \
--set image.tag=dev \
--set-file cosign.scwebhook.key=cosign.pub \
--set logLevel=debug
--set logLevel=debug \
--wait --debug

.PHONY: test-e2e
test-e2e:
Expand Down

0 comments on commit c00f8c6

Please sign in to comment.