mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-14 13:29:31 +00:00
tests: k8s: kata-deploy: Remove unnecessary dirs to free up space
This is following Steve's suggestion, based on what's been done on cloud-api-adaptor. The reason we're doing it here is because we've seen pods being evicted due to disk pressure. Signed-off-by: Fabiano Fidêncio <fabiano@fidencio.org>
This commit is contained in:
18
.github/workflows/run-k8s-tests-on-amd64.yaml
vendored
18
.github/workflows/run-k8s-tests-on-amd64.yaml
vendored
@@ -72,6 +72,24 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TARGET_BRANCH: ${{ inputs.target-branch }}
|
TARGET_BRANCH: ${{ inputs.target-branch }}
|
||||||
|
|
||||||
|
- name: Remove unnecessary directories to free up space
|
||||||
|
run: |
|
||||||
|
sudo rm -rf /usr/local/.ghcup
|
||||||
|
sudo rm -rf /opt/hostedtoolcache/CodeQL
|
||||||
|
sudo rm -rf /usr/local/lib/android
|
||||||
|
sudo rm -rf /usr/share/dotnet
|
||||||
|
sudo rm -rf /opt/ghc
|
||||||
|
sudo rm -rf /usr/local/share/boost
|
||||||
|
sudo rm -rf /usr/lib/jvm
|
||||||
|
sudo rm -rf /usr/share/swift
|
||||||
|
sudo rm -rf /usr/local/share/powershell
|
||||||
|
sudo rm -rf /usr/local/julia*
|
||||||
|
sudo rm -rf /opt/az
|
||||||
|
sudo rm -rf /usr/local/share/chromium
|
||||||
|
sudo rm -rf /opt/microsoft
|
||||||
|
sudo rm -rf /opt/google
|
||||||
|
sudo rm -rf /usr/lib/firefox
|
||||||
|
|
||||||
- name: Configure CRI-O
|
- name: Configure CRI-O
|
||||||
if: matrix.container_runtime == 'crio'
|
if: matrix.container_runtime == 'crio'
|
||||||
run: bash tests/integration/kubernetes/gha-run.sh setup-crio
|
run: bash tests/integration/kubernetes/gha-run.sh setup-crio
|
||||||
|
18
.github/workflows/run-kata-deploy-tests.yaml
vendored
18
.github/workflows/run-kata-deploy-tests.yaml
vendored
@@ -58,6 +58,24 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TARGET_BRANCH: ${{ inputs.target-branch }}
|
TARGET_BRANCH: ${{ inputs.target-branch }}
|
||||||
|
|
||||||
|
- name: Remove unnecessary directories to free up space
|
||||||
|
run: |
|
||||||
|
sudo rm -rf /usr/local/.ghcup
|
||||||
|
sudo rm -rf /opt/hostedtoolcache/CodeQL
|
||||||
|
sudo rm -rf /usr/local/lib/android
|
||||||
|
sudo rm -rf /usr/share/dotnet
|
||||||
|
sudo rm -rf /opt/ghc
|
||||||
|
sudo rm -rf /usr/local/share/boost
|
||||||
|
sudo rm -rf /usr/lib/jvm
|
||||||
|
sudo rm -rf /usr/share/swift
|
||||||
|
sudo rm -rf /usr/local/share/powershell
|
||||||
|
sudo rm -rf /usr/local/julia*
|
||||||
|
sudo rm -rf /opt/az
|
||||||
|
sudo rm -rf /usr/local/share/chromium
|
||||||
|
sudo rm -rf /opt/microsoft
|
||||||
|
sudo rm -rf /opt/google
|
||||||
|
sudo rm -rf /usr/lib/firefox
|
||||||
|
|
||||||
- name: Deploy ${{ matrix.k8s }}
|
- name: Deploy ${{ matrix.k8s }}
|
||||||
run: bash tests/functional/kata-deploy/gha-run.sh deploy-k8s
|
run: bash tests/functional/kata-deploy/gha-run.sh deploy-k8s
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user