Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PoC: quick-k8s #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 0 additions & 46 deletions .github/actions/start-k8s-cluster/action.yaml

This file was deleted.

11 changes: 9 additions & 2 deletions .github/workflows/local-test-infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,15 @@ 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
removeDefaultStorageClass: true
removeControlPlaneTaint: true

- name: Create `local-test-infra` OpenShift resources
uses: ./.github/actions/create-local-test-infra-resources
Expand Down
41 changes: 11 additions & 30 deletions .github/workflows/pre-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,35 +50,15 @@ jobs:
level: warning
braces:
level: warning
smoke-tests:
name: Run Smoke Tests
smoke-tests-k8s:
name: Run Smoke Tests on k8s
runs-on: ubuntu-22.04
env:
SHELL: /bin/bash
KUBECONFIG: '/home/runner/.kube/config'
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: Check out `certsuite-sample-workload`
uses: actions/checkout@v4
with:
Expand All @@ -92,14 +72,15 @@ 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: Start the k8s cluster
uses: ./.github/actions/start-k8s-cluster
- name: Setup quick-k8s cluster
uses: palmsoftware/[email protected]
with:
disableDefaultCni: true
numControlPlaneNodes: 1
numWorkerNodes: 3
installOLM: true
removeDefaultStorageClass: true
removeControlPlaneTaint: true

- 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: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ install:
./scripts/deploy-pod-disruption-budget.sh
./scripts/deploy-special-resources.sh
./scripts/deploy-test-crds.sh
./scripts/install-olm.sh
./scripts/manage-service.sh deploy
./scripts/deploy-network-policies.sh
./scripts/delete-standard-storageclass.sh
Expand All @@ -31,7 +30,6 @@ install-for-qe:
sed --version >/dev/null 2>&1 || { printf >&2 'Install GNU sed.\n'; exit 1; }
./scripts/fix-node-labels.sh
./scripts/deploy-multus-network.sh
./scripts/install-olm.sh
./scripts/delete-standard-storageclass.sh
./scripts/deploy-cr-scale-operator.sh

Expand Down