-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: apostasie <[email protected]>
- Loading branch information
Showing
7 changed files
with
61 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
- name: Setup Kind | ||
uses: engineerd/[email protected] | ||
with: | ||
version: v0.16.0 | ||
version: v0.23.0 | ||
config: tests/e2e/k8s/kind.yaml | ||
- name: Build nydus snapshotter dev image | ||
run: | | ||
|
@@ -113,13 +113,31 @@ jobs: | |
sed -e "s|REGISTRY_IP|${registry_ip}|" tests/e2e/k8s/test-pod.yaml.tpl > tests/e2e/k8s/test-pod.yaml | ||
if [[ "${{ inputs.auth-type }}" == "cri" ]]; then | ||
docker exec kind-control-plane sh -c 'echo " --image-service-endpoint=unix:///run/containerd-nydus/containerd-nydus-grpc.sock" >> /etc/default/kubelet' | ||
docker exec kind-control-plane sh -c 'systemctl daemon-reload && systemctl restart kubelet' | ||
fi | ||
#if [[ "${{ inputs.auth-type }}" == "cri" ]]; then | ||
# docker exec kind-control-plane sh -c 'echo " --image-service-endpoint=unix:///run/containerd-nydus/containerd-nydus-grpc.sock" >> /etc/default/kubelet' | ||
#fi | ||
# MountVolume.SetUp failed for volume "kube-api-access-rfppq" : configmap "kube-root-ca.crt" not found | ||
# Debug: giving it a restart as the cri auth type exhibits no such issue | ||
docker exec kind-control-plane sh -c 'echo " --image-service-endpoint=unix:///run/containerd-nydus/containerd-nydus-grpc.sock" >> /etc/default/kubelet' | ||
docker exec kind-control-plane sh -c 'systemctl daemon-reload && systemctl restart kubelet' | ||
kubectl -n nydus-system get events | ||
kubectl -n nydus-system logs nydus-snapshotter | ||
sleep 2 | ||
echo "Ready?" | ||
kubectl apply -f tests/e2e/k8s/test-pod.yaml | ||
kubectl wait po test-pod -n nydus-system --for=condition=ready --timeout=1m | ||
kubectl wait po test-pod -n nydus-system --for=condition=ready --timeout=1m || { | ||
kubectl -n nydus-system get events | ||
kubectl -n nydus-system logs nydus-snapshotter | ||
kubectl -n nydus-system logs test-pod | ||
exit 1 | ||
} | ||
# Debug | ||
kubectl -n nydus-system get events | ||
# Debug | ||
kubectl delete -f tests/e2e/k8s/test-pod.yaml | ||
- name: Dump logs | ||
if: failure() | ||
|
@@ -149,6 +167,7 @@ jobs: | |
uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
overwrite: true | ||
name: k8s-e2e-tests-logs | ||
path: | | ||
/tmp/nydus-log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters