mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-27 15:57:09 +00:00
gha: Add necessary steps for KBS enablement
The following steps are required for enabling KBS: - Set environment variables `KBS` and `KBS_INGRESS` - Uninstall and install `kbs-client` - Deploy KBS This commit adds the above stpes to the existing workflow for `qemu-coco-dev`. Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
This commit is contained in:
parent
b0a912b8b4
commit
1cefa48047
28
.github/workflows/run-k8s-tests-on-zvsi.yaml
vendored
28
.github/workflows/run-k8s-tests-on-zvsi.yaml
vendored
@ -91,6 +91,12 @@ jobs:
|
|||||||
run: echo "SNAPSHOTTER=" >> $GITHUB_ENV
|
run: echo "SNAPSHOTTER=" >> $GITHUB_ENV
|
||||||
if: ${{ matrix.snapshotter == 'overlayfs' }}
|
if: ${{ matrix.snapshotter == 'overlayfs' }}
|
||||||
|
|
||||||
|
- name: Set KBS and KBS_INGRESS if qemu-coco-dev
|
||||||
|
run: |
|
||||||
|
echo "KBS=true" >> $GITHUB_ENV
|
||||||
|
echo "KBS_INGRESS=nodeport" >> $GITHUB_ENV
|
||||||
|
if: ${{ matrix.vmm == 'qemu-coco-dev' }}
|
||||||
|
|
||||||
- name: Deploy ${{ matrix.k8s }}
|
- name: Deploy ${{ matrix.k8s }}
|
||||||
run: bash tests/integration/kubernetes/gha-run.sh deploy-k8s
|
run: bash tests/integration/kubernetes/gha-run.sh deploy-k8s
|
||||||
|
|
||||||
@ -104,6 +110,21 @@ jobs:
|
|||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
run: bash tests/integration/kubernetes/gha-run.sh deploy-kata-zvsi
|
run: bash tests/integration/kubernetes/gha-run.sh deploy-kata-zvsi
|
||||||
|
|
||||||
|
- name: Uninstall previous `kbs-client`
|
||||||
|
timeout-minutes: 10
|
||||||
|
run: bash tests/integration/kubernetes/gha-run.sh uninstall-kbs-client
|
||||||
|
if: ${{ matrix.vmm == 'qemu-coco-dev' }}
|
||||||
|
|
||||||
|
- name: Deploy CoCo KBS
|
||||||
|
timeout-minutes: 10
|
||||||
|
run: bash tests/integration/kubernetes/gha-run.sh deploy-coco-kbs
|
||||||
|
if: ${{ matrix.vmm == 'qemu-coco-dev' }}
|
||||||
|
|
||||||
|
- name: Install `kbs-client`
|
||||||
|
timeout-minutes: 10
|
||||||
|
run: bash tests/integration/kubernetes/gha-run.sh install-kbs-client
|
||||||
|
if: ${{ matrix.vmm == 'qemu-coco-dev' }}
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
run: bash tests/integration/kubernetes/gha-run.sh run-tests
|
run: bash tests/integration/kubernetes/gha-run.sh run-tests
|
||||||
@ -111,3 +132,10 @@ jobs:
|
|||||||
- name: Delete kata-deploy
|
- name: Delete kata-deploy
|
||||||
if: always()
|
if: always()
|
||||||
run: bash tests/integration/kubernetes/gha-run.sh cleanup-zvsi
|
run: bash tests/integration/kubernetes/gha-run.sh cleanup-zvsi
|
||||||
|
|
||||||
|
- name: Delete CoCo KBS
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
if [ "${KBS}" == "true" ]; then
|
||||||
|
bash tests/integration/kubernetes/gha-run.sh delete-coco-kbs
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user