Skip to content

Commit

Permalink
test microk8s
Browse files Browse the repository at this point in the history
  • Loading branch information
kabhiibm committed Jan 9, 2025
1 parent abbc648 commit 153f433
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/microk8s-ppc64le.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,6 @@ jobs:
with:
platforms: linux/ppc64le

- name: Check system architecture
run: |
ARCHITECTURE=$(uname -m)
echo "Detected architecture: $ARCHITECTURE"
if [ "$ARCHITECTURE" != "ppc64le" ]; then
echo "This job is intended to run on ppc64le architecture only. Exiting..."
exit 1
fi
- name: Install Docker from official Docker repository
run: |
sudo apt-get update
Expand Down Expand Up @@ -62,6 +53,15 @@ jobs:
run: |
sudo microk8s status --wait-ready
- name: Verify ppc64le architecture in MicroK8s
run: |
MICROK8S_ARCH=$(sudo microk8s kubectl run --rm -i --tty busybox --image=busybox --restart=Never --command -- uname -m)
echo "MicroK8s architecture: $MICROK8S_ARCH"
if [ "$MICROK8S_ARCH" != "ppc64le" ]; then
echo "Emulation failed or wrong architecture. Expected ppc64le but got $MICROK8S_ARCH"
exit 1
fi
- name: Test MicroK8s Cluster
run: |
sudo microk8s kubectl get nodes
Expand Down

0 comments on commit 153f433

Please # to comment.