Skip to content

AAE-51806 Try forced PR review dismissal & fix label application/removal ordering & allow github.com in SCR #1703

AAE-51806 Try forced PR review dismissal & fix label application/removal ordering & allow github.com in SCR

AAE-51806 Try forced PR review dismissal & fix label application/removal ordering & allow github.com in SCR #1703

Workflow file for this run

name: KinD tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
pull_request_review:
types: [ submitted ]
jobs:
kind:
runs-on: ubuntu-latest
if: >-
(github.event.review.state == 'approved' && contains(fromJSON('["dependabot[bot]", "github-actions[bot]"]'), github.event.pull_request.user.login)) ||
(github.actor != 'dependabot[bot]' && github.event_name != 'pull_request_review')
strategy:
fail-fast: false
matrix:
ingress:
- ingress-nginx
- traefik
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Kind with ${{ matrix.ingress }} ingress
uses: ./.github/actions/setup-kind
id: setup-kind
with:
ingress-nginx-ref: ${{ matrix.ingress == 'ingress-nginx' && 'main' || 'skip' }}
traefik-enabled: ${{ matrix.ingress == 'traefik' && 'true' || 'false' }}
cloud-provider-kind-enabled: true
metrics: true
- name: Verify ingress endpoint output
env:
INGRESS_ENDPOINT: ${{ steps.setup-kind.outputs.ingress-endpoint }}
run: |
if [ -z "$INGRESS_ENDPOINT" ]; then
echo "❌ Error: ingress-endpoint should not be empty when an ingress controller is installed"
exit 1
fi
echo "✅ Ingress endpoint: $INGRESS_ENDPOINT"
- name: Test waiting for single deployment to be available
uses: ./.github/actions/kubectl-wait
with:
namespace: kube-system
wait-timeout: 5s
wait-resource: deployment/coredns
wait-condition: Available
- name: Test waiting for multiple deployments to be available
uses: ./.github/actions/kubectl-wait
with:
namespace: kube-system
wait-timeout: 5s
wait-resource: deployments
wait-condition: Available
- name: Ensure metrics are available
run: |
echo "Current node usage:"
kubectl top nodes
echo "Current pods usage:"
kubectl top pods --all-namespaces
echo "✅ Metrics are available"