Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,13 @@ jobs:
CLUSTER_NAME: webhook
IMAGE_REPO: cnrancher/webhook
IMAGE_TAG: "${{ env.IMAGE_TAG }}"

- name: Dump logs
if: failure()
run: |
kubectl get pods -n cattle-system -l app=rancher-webhook -o wide || true
kubectl describe pods -n cattle-system -l app=rancher-webhook || true
kubectl logs -n cattle-system -l app=rancher-webhook --all-containers=true --tail=-1 --timestamps=true || true
echo "Dumping webhook configurations:"
kubectl get mutatingwebhookconfiguration rancher.cattle.io -o yaml || true
kubectl get validatingwebhookconfiguration rancher.cattle.io -o yaml || true
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ image: build
--build-arg COMMIT=$${COMMIT} \
--build-arg RD_ONLY_GH_TOKEN=$${OAUTH_TOKEN} \
--platform=$(PLATFORM) \
-t rancher/webhook:$${TAG} \
-t cnrancher/webhook:$${TAG} \
--load \
. && \
mkdir -p dist && \
chmod a+rwx dist && \
docker save -o dist/rancher-webhook-image.tar rancher/webhook:$${TAG} && \
docker save -o dist/rancher-webhook-image.tar cnrancher/webhook:$${TAG} && \
echo IMAGE_TAG=$${TAG} > dist/image_tag'

#push-image is used by the publish-image github action
Expand Down
Loading