Skip to content

Commit

Permalink
enclave-cc: Also test the pre-install / post-uninstall images
Browse files Browse the repository at this point in the history
Let's make sure that we also test the pre-install / post-uninstall
images as part of the enclave-cc tests, so we make sure that any changes
we do with Kata Containers in mind won't break enclave-cc.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
  • Loading branch information
fidencio committed Aug 24, 2023
1 parent 9fa6cf7 commit bc254ba
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,21 @@ jobs:
with:
driver-opts: network=host

- name: Build and push to local registry
- name: Build and push the operator image to local registry
run: |
make docker-build
make docker-push
env:
IMG: localhost:5000/cc-operator:latest

- name: Build and push the pre-install to local registry
run: |
pushd install/pre-install-payload
make containerd registry="${REGISTRY}" extra_docker_manifest_flags="--insecure"
popd
env:
REGISTRY: localhost:5000/container-engine-for-cc-payload

- name: Build custom kind node image
uses: docker/build-push-action@v4
with:
Expand All @@ -57,7 +65,9 @@ jobs:
- name: Install enclave-cc sim
run: |
kubectl apply -k config/samples/enclave-cc/sim
cd config/samples/enclave-cc/sim
kustomize edit set image quay.io/confidential-containers/container-engine-for-cc-payload=localhost:5000/container-engine-for-cc-payload:latest
kubectl apply -k .
sleep 1
kubectl wait --for=jsonpath='{.status.runtimeClass}'=enclave-cc ccruntime/ccruntime-enclave-cc-sgx-mode-sim --timeout=90s
Expand Down
4 changes: 4 additions & 0 deletions config/samples/enclave-cc/base/kustomizeconfig.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
images:
- path: spec/config/payloadImage
kind: CcRuntime
path: spec/config/preInstall/image
kind: CcRuntime
path: spec/config/postUninstall/image
kind: CcRuntime

0 comments on commit bc254ba

Please sign in to comment.