Merge pull request #9887 from ldoktor/ci-kata-runtime

ci.ocp: Ensure we smoke-test with the right runtime class
This commit is contained in:
Wainer Moschetta 2024-06-25 15:27:27 -03:00 committed by GitHub
commit c4fb6fbda2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View File

@ -15,7 +15,9 @@ pod='http-server'
# Create a pod. # Create a pod.
# #
info "Creating the ${pod} pod" info "Creating the ${pod} pod"
oc apply -f ${script_dir}/smoke/${pod}.yaml || \ [ -z "$KATA_RUNTIME" ] && die "Please set the KATA_RUNTIME first"
envsubst < "${script_dir}/smoke/${pod}.yaml.in" | \
oc apply -f - || \
die "failed to create ${pod} pod" die "failed to create ${pod} pod"
# Check it eventually goes to 'running' # Check it eventually goes to 'running'

View File

@ -27,4 +27,4 @@ spec:
runAsUser: 1000 runAsUser: 1000
seccompProfile: seccompProfile:
type: RuntimeDefault type: RuntimeDefault
runtimeClassName: kata-qemu runtimeClassName: ${KATA_RUNTIME}

View File

@ -5,6 +5,9 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
# The kata shim to be used
export KATA_RUNTIME=${KATA_RUNTIME:-kata-qemu}
script_dir=$(dirname $0) script_dir=$(dirname $0)
source ${script_dir}/lib.sh source ${script_dir}/lib.sh