Skip to content

Commit

Permalink
debug: check why deployment is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
puffitos committed Sep 26, 2023
1 parent 67e6ad5 commit f609482
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/end2end.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,22 @@ jobs:
- name: Install Cosignwebhook
run: |
make test-deploy
- name: Check Deployment
run: |
kubectl -n cosign rollout status deployment/cosignwebhook --timeout=60s
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
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ test-image:
test-deploy:
@echo "Deploying test image..."
@helm upgrade -i cosignwebhook chart -n cosignwebhook --create-namespace \
--wait \
--set image.repository=k3d-registry.localhost:5000/cosignwebhook \
--set image.tag=dev \
--set-file cosign.scwebhook.key=cosign.pub \
Expand Down

0 comments on commit f609482

Please sign in to comment.