Skip to content

Commit

Permalink
PoC: quick-k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
sebrandon1 committed Dec 19, 2024
1 parent 143ff66 commit 4eddf66
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 33 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/local-test-infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Start the k8s cluster
uses: ./.github/actions/start-k8s-cluster
- name: Setup the k8s cluster
uses: palmsoftware/[email protected]
with:
disableDefaultCni: true
numControlPlaneNodes: 1
numWorkerNodes: 3
installOLM: true

- name: Create `local-test-infra` OpenShift resources
uses: ./.github/actions/create-local-test-infra-resources
Expand Down
36 changes: 9 additions & 27 deletions .github/workflows/pre-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,26 +59,6 @@ jobs:
PFLT_DOCKERCONFIG: '/home/runner/.docker/config'

steps:
# 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: 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
- 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: Set up Go 1.23
uses: actions/setup-go@v5
with:
Expand All @@ -87,19 +67,21 @@ jobs:
- name: Disable default go problem matcher
run: echo "::remove-matcher owner=go::"

- name: Write temporary docker file
run: |
mkdir -p /home/runner/.docker
touch ${PFLT_DOCKERCONFIG}
echo '{ "auths": {} }' >> ${PFLT_DOCKERCONFIG}
- name: Setup quick-k8s cluster
uses: palmsoftware/[email protected]
with:
disableDefaultCni: true
numControlPlaneNodes: 1
numWorkerNodes: 3
installOLM: true

- name: Check out `certsuite-sample-workload`
uses: actions/checkout@v4
with:
ref: ${{ github.sha }}

- name: Start the k8s cluster
uses: ./.github/actions/start-k8s-cluster
- name: run tmate
uses: mxschmitt/action-tmate@v3

- name: Create `local-test-infra` OpenShift resources
uses: ./.github/actions/create-local-test-infra-resources
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ jobs:
repository: redhat-openshift-ecosystem/openshift-preflight
path: openshift-preflight

# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3

- name: Run preflight
working-directory: openshift-preflight
run: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ install:
./scripts/deploy-pod-disruption-budget.sh
./scripts/deploy-special-resources.sh
./scripts/deploy-test-crds.sh
./scripts/install-olm.sh
# ./scripts/install-olm.sh
./scripts/manage-service.sh deploy
./scripts/deploy-network-policies.sh
./scripts/delete-standard-storageclass.sh
Expand Down

0 comments on commit 4eddf66

Please sign in to comment.