Skip to content

Commit

Permalink
poc: quick-k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
sebrandon1 committed Feb 17, 2025
1 parent daf0d9f commit e0b0b93
Showing 1 changed file with 10 additions and 28 deletions.
38 changes: 10 additions & 28 deletions .github/workflows/qe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
fail-fast: false
matrix:
suite: [accesscontrol, affiliatedcertification, manageability, networking, lifecycle, performance, platformalteration, observability, operator]
numWorkers: [0, 1, 2]
env:
SHELL: /bin/bash
KUBECONFIG: '/home/runner/.kube/config'
Expand Down Expand Up @@ -59,34 +60,15 @@ jobs:
sudo apt-get update
sudo apt-get install -y python3-pip
- name: Create docker/daemon.json if it does not exist
run: |
if [ ! -f /etc/docker/daemon.json ]; then
echo '{}' | sudo tee /etc/docker/daemon.json
fi
# Create a Kind cluster for testing.
- name: Bootstrap the Kind and OC/Kubectl binaries for the `local-test-infra`
run: make bootstrap-cluster
working-directory: certsuite-sample-workload

# Restart docker using /mnt/docker-storage (sdb) instead of /var/lib/docker (sda).
# This step needs to be done right after the partner repo's bootstrap scripts, as they
# overwrite the docker's daemon.json.
- name: Make docker to use /mnt (sdb) for storage
run: |
df -h
lsblk
sudo mkdir /mnt/docker-storage
sudo jq '. +={"data-root" : "/mnt/docker-storage"}' < /etc/docker/daemon.json > /tmp/docker-daemon.json
sudo cp /tmp/docker-daemon.json /etc/docker/daemon.json
cat /etc/docker/daemon.json
sudo systemctl restart docker
sudo ls -la /mnt/docker-storage
- name: Create `local-test-infra` OpenShift resources
run: make rebuild-cluster
working-directory: certsuite-sample-workload
- name: Setup up k8s cluster
uses: palmsoftware/[email protected]
with:
disableDefaultCni: true
numControlPlaneNodes: 1
numWorkerNodes: ${{ matrix.numWorkers }}
installOLM: true
removeDefaultStorageClass: true
removeControlPlaneTaint: true

- name: Install partner resources
run: python3 -m venv .venv; source .venv/bin/activate; pip install --upgrade pip; pip install jinjanator; cp .venv/bin/jinjanate .venv/bin/j2; make install-for-qe
Expand Down

0 comments on commit e0b0b93

Please sign in to comment.