Skip to content

Upgrade Go version to 1.26.0 #466

Upgrade Go version to 1.26.0

Upgrade Go version to 1.26.0 #466

name: restart-ds-crio-8mins
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Start a kind cluster with crio
uses: helm/kind-action@v1.12.0
with:
cluster_name: kind-${{ github.run_id }}
kubectl_version: "v1.25.2"
node_image: "docker.io/warmmetal/kindest-node-crio:v1.25.2-container-image-csi-driver"
- name: Build image
run: ./hack/ci/build.sh
- name: Set image version
run: |
echo "VALUE_FILE=charts/warm-metal-csi-driver/values-crio.yaml" >> "$GITHUB_ENV"
echo "IMAGE_TAG=$(git rev-parse --short HEAD)" >> "$GITHUB_ENV"
echo "HELM_NAME=wm-csi-integration-tests" >> "$GITHUB_ENV"
- name: Install the CSI Driver
run: |
trap "kubectl -n kube-system describe po" ERR
helm install ${HELM_NAME} charts/warm-metal-csi-driver -n kube-system \
-f ${VALUE_FILE} \
--set csiPlugin.image.tag=${IMAGE_TAG} \
--wait \
--debug
- name: Test volumes between the ds restarted
run: ./test/integration/restart-ds.sh
- name: Debug Driver and Test Status
if: always()
run: |
echo "=== Failed Job Details ==="
kubectl get jobs -o wide
kubectl describe jobs
echo ""
echo "=== Pod Status ==="
kubectl get pods -o wide
echo ""
echo "=== Failed Pod Details ==="
for pod in $(kubectl get pods --field-selector=status.phase!=Succeeded,status.phase!=Running -o name); do
echo "Details for $pod:"
kubectl describe $pod
echo ""
echo "Logs for $pod:"
kubectl logs $pod --all-containers --tail=200 || true
echo ""
done
echo ""
echo "=== CSI Driver Pods Status ==="
kubectl get pods -n kube-system -l component=nodeplugin -o wide || true
echo ""
echo "=== CSI Driver Nodeplugin Logs ==="
kubectl get pods -n kube-system -l component=nodeplugin -o name | while read pod; do
echo "Logs for $pod (csi-plugin container):"
kubectl logs -n kube-system $pod -c csi-plugin --tail=500 2>&1 || echo "Failed to get csi-plugin logs for $pod"
echo ""
done
echo ""
echo "=== Events ==="
kubectl get events --sort-by='.lastTimestamp' -A
- name: Uninstall the CSI Driver
run: helm uninstall -n kube-system ${HELM_NAME} --wait